Fatal error: Uncaught exception 'Move\DB\Exception' with message '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 (bt_s.`place_region_code` = 0 OR bt_s.`place_region_code` IN ())) OR bt_s.id' at line 7

SELECT `self`.*, `bt_s`.`place_country`, `bt_s`.`place_region_code`, `bs`.`section_id` FROM (`banners` self) LEFT JOIN `banners_categories` bc ON `self`.`id` = `bc`.`banner_id` LEFT JOIN `banners_targeting` bt_s ON `self`.`id` = `bt_s`.`banner_id` AND bt_s.type = 1 LEFT JOIN `banners_sections` bs ON `self`.`id` = `bs`.`banner_id` WHERE (bc.category_id = 99 OR bc.category_id IS NULL) AND ((bt_s.`place_country` = AND (bt_s.`place_region_code` = 0 OR bt_s.`place_region_code` IN ())) OR bt_s.id IS NULL) AND (bs.section_id = 18 OR bs.section_id IS NULL) AND `published` = 1 AND `placeholder` = 0 AND self.id NOT IN (SELECT banner_id FROM banners_targeting WHERE type = 2 AND place_country = AND (place_region_code = 0 OR place_region_ in /srv/www/move/repo/master/htdocs/application/library/engine/DB/Model.php on line 578