select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 05:37:47' and ( id in (134630,134629,134628,134626,133730,133729,133728,133727,133434,133430,133429,133428,133427,133425,133426,134627,133062,133061,133060) ) 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 05:37:47' and ' at line 1