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] => 19 [1] => 24 [2] => -24 ) ) [2] => Array ( [file] => /var/www/html/index.php [line] => 41 [function] => get_game_list_category [args] => Array ( [0] => Racing [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.0001371136{main}( ).../index.php:0 20.0013377144archive( ).../index.php:13 30.6015378064get_game_list_category( ).../index.php:41 40.8695378096Category::getListByCategory( ).../game_list.php:23 50.9646391032execute ( ).../Category.php:157 )