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 'and a.season_id = and a.player_id <> 571 and a.player_id <> 130 and b.fir' at line 8