Fatal error: Wrong SQL: SELECT r.runde,IFNULL(s.gegner,'---') gegner,s.P,s.T,s.A,s.PPP,s.PPT,s.PPA,s.SHP,s.SHT,s.SHA,s.ENT,s.ENA,s.2er,s.5er,s.10er,s.Spld,s.durchschnitt_m FROM ( SELECT DISTINCT po_begegnung,runde FROM statistik_results WHERE liga =175 AND endoflife_id IS NULL )r LEFT OUTER JOIN ( SELECT s.id spieler_id, r.heim, r.runde, r.po_begegnung, r.id spiel, IF(s2g.team_id=r.heim,a.kuerzel,CONCAT('@',h.kuerzel)) gegner, COUNT(DISTINCT s2g.spiel_id) SP, COUNT(DISTINCT IF(t.sid=s.id OR t.ass1id=s.id OR t.ass2id=s.id,t.id,NULL)) P, COUNT(DISTINCT IF(t.sid=s.id,t.id,NULL)) T, CONCAT(COUNT(DISTINCT IF(t.ass1id=s.id,t.id,NULL)) + COUNT(DISTINCT IF(t.ass2id=s.id,t.id,NULL))) A, COUNT(DISTINCT IF((t.sid=s.id OR s.id=t.ass1id OR s.id=t.ass2id) AND t.pp>0,t.id,NULL)) PPP, COUNT(DISTINCT IF(t.sid=s.id AND t.pp>0,t.id,NULL)) PPT, CONCAT(COUNT(DISTINCT IF(t.ass1id=s.id AND t.pp>0,t.id,NULL)) + COUNT(DISTINCT I in /var/www/marksoft/www.eishockeynews.com/db_config.php on line 34