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 '-1, 1' at line 6

SELECT * FROM `tbl_posts` WHERE `post_category` = 'event' AND `status` = '1' ORDER BY `post_id` DESC LIMIT -1, 1

Filename: models/Common_model.php

Line Number: 117