Коньяк

Database_Exception [ 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 ') AND `tuning_sitecontent`.`template` = '6' ORDER BY `pagetitle` ASC' at line 1 [ SELECT COUNT(`tuning_sitecontent`.`id`) AS `records_found` FROM `tuning_site_content` AS `tuning_sitecontent` WHERE `published` = '1' AND `deleted` = '0' AND `tuning_sitecontent`.`id` IN () AND `tuning_sitecontent`.`template` = '6' ORDER BY `pagetitle` ASC ]