select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 08:16:33' and ( id in (137761,137760,137493,137464,136859,134522,134523,134524,134096,133859,133134,133133,133858) ) 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 08:16:33' and ' at line 1