select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 04:28:48' and ( id in (139031,137795,137791,137790,137789,136165,135810,135280,139030,135278,135277,135276,135208,135207,135206,134387,134128,134126,134127,134125,133533,133534,133072,133071,133070,130986,130987,138815) ) 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<'2012-05-25 04:28:48' and ' at line 1