Unable to query local database 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 ') as game_count, (select p.last_name from PLAYER p where p.player_id = bs.player' at line 1