MySQL Query fail: line 38 file /home/www/htdocs/vhosts/casinorivaPT/core/Model.class.php
SELECT a.*, b.page_title as parent_page_title
				FROM `rivacasino_pages` as a
				LEFT JOIN `rivacasino_pages` as b ON b.id = a.parent_id
				WHERE a.`id` = 
				
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 4