Database Error

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 '-10, 10' at line 9

SELECT `a`.*, `b`.`name` as category_name, `b`.`slug` as subcategory_slug, `b`.`name` as parent_name, `b`.`slug` as category_slug, `d`.`slug` as section_slug, `d`.`slug` as section_slug1 FROM (`tbl_report` as a) LEFT JOIN `tbl_category` as b ON `a`.`category_id` = `b`.`id` LEFT JOIN `tbl_section` as d ON `b`.`section_id` = `d`.`id` WHERE `a`.`status` = 1 AND `b`.`status` = 1 AND `a`.`category_id` = '17' ORDER BY `a`.`id` desc LIMIT -10, 10

Filename: /home/fsxznrto1vpj/public_html/models/report_model.php

Line Number: 119