select distinct from dc_coupons where approved='1' and start_date_dt<'2014-07-23 20:17:55' and ( id in (144355,135457,135458,134630,134629,134628,134626,142798,142797,142796,142795,142749,142747,142748,142746,134627,141010,141009,141008,141006,141005,141004,141003,141002,141001,141000,140999,140998,140997,140777,131337,141007) ) order by creation_date_dt desc limit 0, 10 |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 'from dc_coupons where approved='1' and start_date_dt<'2014-07-23 20:17:55' and ' at line 1