MySQL Error in

Query :

select a.* from games_categ_infos as b left join games_categ_main as a on a.id=b.categ_id where b.game_id=

Answer :
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 '' at line 1