程式發生異常導致網站中斷執行,原因如下 :
SQL 查詢失敗
錯誤句子 : select DISTINCT actnews_mclass_relation.Sn,actnews_mclass_relation.Sn as amSn,actnews.*,actnews_lang.* from actnews left join actnews_lang on actnews.Sn = actnews_lang.Sn right join actnews_mclass_relation on actnews.Sn = actnews_mclass_relation.Sn where actnews_lang.Lang = 'zh-tw' and Audit IN ('O', 'C') YEAR(ActStartTime)>='2024' and actnews_mclass in (10,20,30,40) order by ActStartTime 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 'YEAR(ActStartTime)>='2024' and actnews_mclass in (10,20,30,40) order by ActStart' at line 1
請向銳綸數位聯絡 03-5508881