Query: SELECT `Image`.`id`, `Image`.`filename`, `Image`.`order`, `Image`.`title`, `Image`.`project_id`, `Image`.`hero_image`, `Project`.`id`, `Project`.`name`, `Project`.`url_name`, `Project`.`date`, `Project`.`client`, `Project`.`address`, `Project`.`description`, `Project`.`publish`, `Project`.`showcase`, `Project`.`promoted_date`, `Project`.`thumb_scale`, `Project`.`layout` FROM `images` AS `Image` LEFT JOIN `projects` AS `Project` ON (`Image`.`project_id` = `Project`.`id`) WHERE hero_image = 1 AND project_id = LIMIT 1 Warning: SQL Error: 1064: 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 'LIMIT 1' at line 1 in /home/content/v/a/s/vassiliskaridi/html/cake/libs/model/datasources/dbo_source.php on line 440