select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 05:37:08' and ( id in (138503,134664,134670,134663,139324,129298,129299,129300,132567,132566,132565,132564) ) 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:08' and ' at line 1