Error Number: 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 `site_catalog`.`id` IN ('563', '565', '566', '567', '568', '570', '571', ' at line 3

SELECT `id`, `in_stock`, `factoryid` FROM (`site_catalog`) WHERE `site_catalog`.`factoryid` IN () AND `site_catalog`.`id` IN ('563', '565', '566', '567', '568', '570', '571', '573', '576', '569', '572', '755', '756', '757', '758', '759', '760', '761', '762', '763', '764', '765', '767', '768', '769', '770', '771', '772', '773', '774', '775', '776', '777', '778', '779', '780', '781', '782', '783', '784', '785', '786', '787', '788')

Filename: models/catalog_model.php

Line Number: 1197