A Database Error Occurred

Error Number: 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 is_use = 'N' AND limit_date < '2024-03-29'' at line 6

UPDATE tbl_coupon_detail SET is_use = 'O', use_date = '2024-03-29 20:13:37', use_ip = '34.239.148.106' WHERE mb_idx = AND is_use = 'N' AND limit_date < '2024-03-29'

Filename: models/Member_model.php

Line Number: 1096