select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 09:32:50' and ( id in (5392,121477,138638,137660,137657,137658,137659,137637,137636,136732,136733,136734,136722,136720,136719,136717,136718,135261,126203,134466,134277,134278,134276,133903,133902,133901,128701,128702,128703,128704,128705,128717,128718,128733,128734,128735,128736,128737,129090,129091,138938,138937,138936,138375) ) 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 09:32:50' and ' at line 1