An error occurred: select coupon_id from coupons where store_id = and status = 'ENA' and show_in_rank = 0
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 'and status = 'ENA' and show_in_rank = 0' at line 1