Database error: SQL語句執行失敗:select * from _web_customer where 1 and is_show=1 and id= order by id desc MySQL Error: 1064 (You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by id desc' at line 1) Database error: SQL語句執行失敗:select a.id as acup_id ,b.add_date,a.ntype,a.okprd_id,a.coup_name,a.coup_code,a.pc_discount,a.pc_dtype,a.crule_price,a.crule_num,a.coupon_start,a.coupon_end,b.is_used,b.id as bccup_id FROM _web_coupon as a JOIN _web_customer_coupon as b on a.id = b.coupon_id where a.is_show=1 and b.is_used='2025-02-16' order by b.add_date asc,b.id desc MySQL Error: 1064 (You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and date(a.coupon_start)<='2025-02-16' and date(a.coupon_end)>='2025-02-16' ...' at line 1) 桂冠食品Laurel