select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 04:34:06' and ( id in (139643,138324,138323,137759,137758,138639,137532,137530,137529,137527,137528,137156,137154,137155,137153,137152,137104,137103,138410,139074,139075,123215,136614,136613,136612,135810,125790,125791,139332,135337,138563,135208,135207,135206,135171,135170,134840,134599,134598,127819,127926,127927,139336,139335,139334,139333,133864,133833,133834,133835,133825,133827,133828,133829,133826,133824,133823,133818,133819,133820,133822,133821,133817,133816,133815,133814,133813,133811,133812,133810,133809,133711,133714,133713,133712,139191,139192,139193,139194,139195,139196,133589,133588,139197,139198,133407,133406,133405,139135,139134,139133,139132,132969,139073,132963,132962,132961,132959,132960,132958,132957,132956,132955,132954,132953,132952,132951,132950,132949,132432,132410,132394,132393,138640,138412,131839,131835,131830,131828,131826,131825,131823,131822,131821,131820,131818,131817,138411,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 04:34:06' and ' at line 1