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`.`id`, `a`.`author_id`, `a`.`title`, `a`.`image`, `a`.`other`, `a`.`slug`, `a`.`excerpt`, `a`.`description`, `a`.`date_published`, `a`.`category_id`, `a`.`related_article_id`, `d`.`slug` as category_parent_slug, `d`.`name` as category_parent_name, `c`.`slug` as category_slug, `c`.`name` as category_name FROM (`tbl_article` as a) LEFT JOIN `tbl_category` as c ON `c`.`id` = `a`.`category_id` LEFT JOIN `tbl_category` as d ON `d`.`id` = `c`.`parent_id` WHERE (a.category_id = '13' or a.category_id in (select id from tbl_category where parent_id = '13' and status = 1) or find_in_set('13', a.other_category_id)) AND `a`.`status` = 1 AND `a`.`date_published` <= '2024-03-28' ORDER BY `a`.`date_published` desc, `a`.`id` desc LIMIT -10, 10

Filename: /home/admin/web/asu.thehoot.org/public_html/models/article_model.php

Line Number: 28