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 '-12 ,12' 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/Search.php(17): Database->resultset()
#3 /var/www/html/rspg/app/controllers/Searchs.php(21): Search->getTree(-12, 12)
#4 /var/www/html/rspg/app/libraries/Core.php(44): Searchs->index()
#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