mySQL error with query SELECT i.inumber as itemid, i.ititle as title, i.ibody as body, m.mname as author, m.mrealname as authorname, UNIX_TIMESTAMP(i.itime) as timestamp, i.itime, i.imore as more, m.mnumber as authorid, c.cname as category, i.icat as catid, i.iclosed as closed FROM nucleus_member as m, nucleus_category as c, nucleus_item as i WHERE i.iauthor = m.mnumber AND i.icat = c.catid AND i.idraft = 0 AND i.iblog = 5 AND i.itime <= "2020-07-08 01:23:44" AND i.icat=5 ORDER BY i.itime DESC LIMIT -1, 1: 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