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

SELECT DISTINCT `competitions`.*, `ct`.`ct_title`, `ct_friendly_url`, `ct`.`ct_description`, `ct`.`ct_short_description` FROM `competitions` LEFT JOIN `competitions_trans` as `ct` ON `competitions`.`id` = `ct`.`ct_competition_id` LEFT JOIN `languages` as `l` ON `l`.`id` = `ct`.`ct_competition_id` WHERE `ct`.`ct_language_id` = '2' AND `competitions`.`c_visibility` = 1 AND `c_type` =0 ORDER BY `competitions`.`c_date` DESC, `id` ASC LIMIT -18, 18

Filename: core/MY_Model.php

Line Number: 37