MySQL Error Occured
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 ') ORDER BY CubeCart_inventory.list_no DESC, productId DESC LIMIT 0, 24' at line 1

QUERY = SELECT DISTINCT man, CubeCart_inventory.cat_id, CubeCart_cats_idx.productId, productCode, image, image1, price, dia, name, available, gleather, greekproduct, rfid, sale_price, stock_level, useStockLevel, final_price, optsText FROM CubeCart_cats_idx INNER JOIN CubeCart_inventory ON CubeCart_cats_idx.productId = CubeCart_inventory.productId WHERE vrs='1' AND price>0 AND CubeCart_cats_idx.cat_id IN (8,139,152,20,310,23,46,299,21,45,165,15,16,22,151,49,17,241,14,44,47,236,48) AND active='1' AND isPhotos='0' AND isNews='0' AND man IN () ORDER BY CubeCart_inventory.list_no DESC, productId DESC