"SQLSTATE[42000]: Syntax error or access violation: 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 ') GROUP BY store_id)' at line 1 (SQL: SELECT coupons.*,stores.store_name,stores.store_url,stores.store_image FROM coupons INNER JOIN `stores` ON `stores`.`id` = `coupons`.`store_id` WHERE coupons.id IN( SELECT MAX(coupons.id) FROM coupons WHERE `coupons`.`store_id` IN (2571,2578,2572,2575,) GROUP BY store_id);)"