Error: 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' at line 1. SQL: SELECT id, url, short_description_en as short_description, ordering FROM links WHERE active=1 ORDER BY ordering ASC LIMIT 5 OFFSET -5array(4) { [0]=> array(6) { ["file"]=> string(42) "/home/dunlopty/public_html/class/XL_DB.php" ["line"]=> int(486) ["function"]=> string(5) "query" ["class"]=> string(5) "XL_DB" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &string(133) "SELECT id, url, short_description_en as short_description, ordering FROM links WHERE active=1 ORDER BY ordering ASC LIMIT 5 OFFSET -5" } } [1]=> array(6) { ["file"]=> string(56) "/home/dunlopty/public_html/include/system/link/index.php" ["line"]=> int(49) ["function"]=> string(8) "get_data" ["class"]=> string(5) "XL_DB" ["type"]=> string(2) "::" ["args"]=> array(6) { [0]=> &string(5) "links" [1]=> &string(60) "id, url, short_description_en as short_description, ordering" [2]=> &string(8) "active=1" [3]=> &string(12) "ordering ASC" [4]=> &float(-5) [5]=> &string(1) "5" } } [2]=> array(4) { ["file"]=> string(37) "/home/dunlopty/public_html/system.php" ["line"]=> int(236) ["function"]=> string(8) "generate" ["args"]=> array(0) { } } [3]=> array(4) { ["file"]=> string(37) "/home/dunlopty/public_html/router.php" ["line"]=> int(20) ["args"]=> array(1) { [0]=> string(37) "/home/dunlopty/public_html/system.php" } ["function"]=> string(7) "include" } }