select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 05:53:25' and ( id in (2614,138255,137937,137936,137935,137934,137881,137880,137878,137879,138639,137440,137439,137438,137437,137435,137436,137434,137433,137432,137431,137430,137429,137428,137427,137426,137425,123215,136716,136715,136711,136710,136709,136706,136705,136704,136703,136307,136274,126327,126328,126329,126330,134599,134598,134385,134369,138801,138802,127819,133589,133588,133532,133530,133531,133529,133528,133291,133290,133199,133198,133197,133095,129612,134368,133018,138935,138640,133585,138955) ) 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:53:25' and ' at line 1