ERROR !; PDOException Object ( [message:protected] => 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 '-24' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /var/www/html/classes/Category.php [line:protected] => 157 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/html/classes/Category.php [line] => 157 [function] => execute [class] => PDOStatement [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /var/www/html/includes/game_list.php [line] => 23 [function] => getListByCategory [class] => Category [type] => :: [args] => Array ( [0] => 20 [1] => 24 [2] => -24 ) ) [2] => Array ( [file] => /var/www/html/index.php [line] => 41 [function] => get_game_list_category [args] => Array ( [0] => Adventure [1] => 24 [2] => -24 ) ) [3] => Array ( [file] => /var/www/html/index.php [line] => 13 [function] => archive [args] => Array ( ) ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => 42000 [1] => 1064 [2] => 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 '-24' at line 1 ) [xdebug_message] => ( ! ) 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 '-24' at line 1 in /var/www/html/classes/Category.php on line 157 Call Stack #TimeMemoryFunctionLocation 10.0001371376{main}( ).../index.php:0 20.0011377384archive( ).../index.php:13 30.0098378304get_game_list_category( ).../index.php:41 40.0190378336Category::getListByCategory( ).../game_list.php:23 50.0273391312execute ( ).../Category.php:157 )