select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 05:08:26' and ( id in (119594,119595,119596,119597,138950,134989,134988,134987,134985,134986,134593,134594,134595,134596,134282,134281,139346,139347,139345,139344,128407,128409,139308,138949,133562,133561,133560,133532,133530,133531,133529,133528,128941,128942,133246,133134,133133,138840,132870,132869,132867,132866,132860,132859,132858,132857,132856,138838,138839,132855,132854,132743,132593,132592,132591,132590,132589,132588,138847,138845,138846,138844,138843,138842,131787,131786,138841,131785,131781,131760,131672) ) 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:08:26' and ' at line 1