Products Search : Inquiry Management Inquiry Cart Login / Register Home

Can't execute query

SELECT id,title FROM news_eng WHERE (available='1' or (available='0' and sdate <= '2024-06-20' AND edate >= '2024-06-20')) ORDER BY sdate DESC LIMIT -1, 1

MySQL Error: 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 '-1, 1' at line 1

This script cannot continue, terminating.