Fatal error: Wrong SQL: SELECT s.id, CONCAT(s.vorname,' ',s.nachname) Spieler, CONCAT('/spieler/',s.id,'/',NICEURL(s.vorname),'-',NICEURL(s.nachname),'/',r.liga) url, COUNT(DISTINCT s2g.spiel_id) SP, FROM statistik_results r INNER JOIN statistik_spieler2game s2g ON s2g.spiel_id=r.id INNER JOIN statistik_spieler s ON s2g.spieler_id=s.id LEFT OUTER JOIN statistik_results_tore t ON t.spiel=r.id AND s.id IN (t.sid,t.ass1id,t.ass2id) LEFT OUTER JOIN statistik_results_strafen st ON s.id=st.spieler AND st.spiel=r.id WHERE r.liga IN(93, 92, 84) GROUP BY s.id Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM statistik_results r INNER JOIN statistik_spieler2game s2g ON s2g.spiel_id' at line 3 in /var/www/marksoft/www.eishockeynews.com/db_config.php on line 34