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' at line 2
SELECT, c.cid,, c.rassrochka, c.alias, c.reserv, c.price, c.order_delay,, c.order, c.beznal,, c.currency, (SELECT name FROM catalog_images as ci WHERE ORDER BY LIMIT 1) as image FROM catalog as c WHERE id IN () AND