select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 05:01:04' and ( id in (139125,134895,139122,139123,134893,134892,134891,139124,134886,134887,139131,139129,139130,139128,139127,139126) ) 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:01:04' and ' at line 1