select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 08:54:10' and ( id in (111355,111353,119614,119615,140054,140055,120330,120331,120332,120333,139013,138317,138318,138316,138298,138297,138296,138231,138148,138623,138624,138625,138626,138050,138051,138052,138645,138646,137645,137644,137643,137642,138511,138512,138513,137373,137372,138409,136879,136878,136877,138408,136405,136404,136403,136402,136285,136284,124161,124162,124163,139749,139004,139748,135964,135963,135962,135765,135764,125101,139747,135429,135428,139331,135233,135232,135231,135230,135229,135228,135227,135226,138540,135143,135126,126327,126328,126329,126330,134824,134823,134822,134821,134820,134724,134723,138644,134369,138801,138802,134336,134282,134281,134241,139346,139347,138514,139345,139344,133891,133889,133890,133800,133799,133798,133797,128407,128409,139308,128669,128670,128671,128672,128673,128674,128675,128807,128809,128810,128811,133494,133495,133493,128916,128943,128944,128945,128946,128947,129112,129113,129114,129121,129122,133329,133328,133327,133326,133325,133324,133323,138510,133301,133300,133299,133298,133297,133296,133246,133199,133198,133197,133196,133195,129612,134368,132996,132995,132994,132993,132992,132990,132989,132808,132807,132806,132771,138599,132690,132689,132688,132600,132599,132598,132597,132596,132595,132594,138934,132437,132436,138913,132131,132130,132129,132024,132023,130984,130985,131907,131906,131591,131808,131807,131806,138621,138622) ) 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:54:10' and ' at line 1