select distinct from dc_coupons where approved='1' and start_date_dt<'2012-05-25 07:39:07' and ( id in (139643,137403,139074,139075,135873,135871,135870,134840,132969,139073,132963,132962,132961,132959,132960,132958,132957,132956,132955,132954,132953,132952,132951,132950,132949,132825,132394,132393) ) 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 07:39:07' and ' at line 1