select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 08:55:36' and ( id in (107297,139639,139872,139871,139870,137861,139232,138638,137660,137657,137658,137659,139460,139206,139207,139208,139209,122439,122440,122441,122442,122444,136740,136739,124772,124773,124774,124775,135894,135895,138925,135727,135445,135405,135401,135399,135397,135398,135396,135395,135394,135383,135382,135378,135377,135364,135363,135325,135324,138499,138500,138501,135141,135140,135139,134824,134823,134822,134821,134820,127234,127235,127256,134589,134586,134587,138597,134578,134579,139363,134270,134269,134267,133800,133799,133798,133797,133608,133607,133606,139246,139210,139160,133057,133055,133054,133053,133052,133051,139045,139043,134268,132675,132674,132673,130093,138934,138933,132285,132265,132264,132263,132262,132261,132260,130736,130737,132111,132012,132010,132009,131763,131700,131699,131698,131692,131691,131690,131689,131688,131687,131659,131658,131657,131656,138814,138813) ) 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:55:36' and ' at line 1