select distinct from dc_coupons where approved='1' and start_date_dt<'2014-04-20 00:23:34' and ( id in (5392,137637,137636,144819,144820,143169,143166,143167,143168,143162,143163,143164,143165,143161,143160,142677,133903,133902,133901,142289,142288,142287,142286,142285,128701,128702,128703,128704,128705,128717,128718,128733,128734,128735,128736,128737,129090,129091,141574,141573,141572,140792,140064,140065) ) 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<'2014-04-20 00:23:34' and ' at line 1