A Database Error Occurred

Error Number: 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 '-8, 8' at line 4

SELECT *, IF(due_date > now(), 1, 2) AS duedate2 FROM `bbs_seminar` ORDER BY `no` DESC LIMIT -8, 8

Filename: libraries/Controller.php

Line Number: 263