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 '-10 ,10' at line 5 in /var/www/html/rspg/app/libraries/Database.php:64 Stack trace: #0 /var/www/html/rspg/app/libraries/Database.php(64): PDOStatement->execute() #1 /var/www/html/rspg/app/libraries/Database.php(69): Database->execute() #2 /var/www/html/rspg/app/models/Post.php(29): Database->resultset() #3 /var/www/html/rspg/app/controllers/Pages.php(78): Post->getPostsHome(-10, 10, '3') #4 /var/www/html/rspg/app/libraries/Core.php(44): Pages->Posts('3') #5 /var/www/html/rspg/public/index.php(5): Core->__construct() #6 {main} thrown in /var/www/html/rspg/app/libraries/Database.php on line 64