select distinct from dc_coupons where approved='1' and start_date_dt<'2014-09-15 20:57:45' and ( id in (10259,10257,10258,10260,137943,137942,144633,144634,144645,144646,144647,144648,137806,137805,137637,137636,137612,137552,137551,137548,144824,144825,144826,144827,144828,144846,136849,136848,136847,136846,144500,144499,144498,144497,144463,144462,144461,144460,136082,136081,144333,144332,144139,144138,135556,143860,143751,143750,143571,143405,143404,143403,143394,143393,143392,143390,143391,143389,143388,143208,143207,143206,138372,143142,143141,143087,143086,143085,143084,143083,143082,143081,134593,134594,134595,134596,143018,143017,143016,142968,142967,142966,142965,142874,142573,142572,142571,142570,142568,142569,142463,142462,142461,128723,128724,128725,128726,128727,129112,129113,129114,142031,133310,141639,141638,141637,141575,141528,141527,141412,141411,141410,132593,132592,141236,141237,141235,141234,141233,141232,141213,141212,130597,140926,140748,140747,140673,140672,140671,140657,140655,140656,140927,140658,140674,141636,140157,140158,140269,140313) ) 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-09-15 20:57:45' and ' at line 1