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 '-7,7' at line 17
SELECT c.`id` as video_cid, p.`directory` as screen_dir, p.`filename` as screen_file, v.`title` as title, v.`video_type` as type, v.`directory` as dir, v.`filename` as file, v.`url` as url FROM ( ( ( `videos` as v INNER JOIN `contents` as c ON v.`id`=c.`item_id` AND c.`item_type`=2 ) LEFT JOIN `rel_content_related` as rct ON c.`id`=rct.`content_id` AND rct.`order` IS NULL ) LEFT JOIN contents as cn ON rct.`related_id`=cn.id ) LEFT JOIN `pictures` as p ON p.`id`=cn.`item_id` AND cn.`item_type`=3 WHERE c.`active`=1 ORDER BY c.`creation_date` DESC LIMIT -7,7