Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 '-4, 4' at line 1 in /home/bricksnc/dev.bricksnco.ca/app/Http/Controllers/PageController.php:24
Stack trace:
#0 /home/bricksnc/dev.bricksnco.ca/app/Http/Controllers/PageController.php(24): PDO->prepare('SELECT * FROM p...')
#1 /home/bricksnc/dev.bricksnco.ca/resource/view/content/category-list.php(111): PageController->paginateData('products', 'subcategory_id', 1, -4, 4)
#2 /home/bricksnc/dev.bricksnco.ca/app/Http/Controllers/View.php(15): include('/home/bricksnc/...')
#3 /home/bricksnc/dev.bricksnco.ca/category-list.php(9): View->loadContent('content', 'category-list')
#4 {main}
thrown in /home/bricksnc/dev.bricksnco.ca/app/Http/Controllers/PageController.php on line 24