An Error Was Encountered
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-5,5' at line 23
SELECT c.id as cid, q.`title` as title, q.`info` as info, q.`fullname` as user, q.`city` as city, q.`video_filename` as video, q.`directory` as dir, q.`filename` as file, q.`public` as public, q.`type` as vtype, (SELECT count(rc.`content_id`) as total FROM `contents` as c INNER JOIN `rel_content_related` as rc ON c.`id`=rc.`related_id` WHERE rc.`related_item_type`=2 AND c.`active`=1 AND rc.`content_id`=cid GROUP BY rc.`content_id`) as total_comments FROM ( `contents` AS c INNER JOIN `questions` AS q ON q.`id`=c.`item_id` ) INNER JOIN `rel_category_content` as rt ON c.`id`=rt.`content_id` and rt.`category_id` !=41 WHERE c.`item_type`=1 AND c.`active`=1 AND rt.category_id=11 AND ( q.`type`=1 OR q.`type`=2 ) ORDER BY q.`publication_date` DESC LIMIT -5,5