mysqli_sql_exception Object ( [message:protected] => 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 '' at line 1 [string:Exception:private] => [code:protected] => 1064 [file:protected] => /customers/5/9/2/fredericia-skakforening.dk/httpd.www/phpclass/class.saeson.php [line:protected] => 137 [trace:Exception:private] => Array ( [0] => Array ( [file] => /customers/5/9/2/fredericia-skakforening.dk/httpd.www/phpclass/class.saeson.php [line] => 137 [function] => mysqli_query [args] => Array ( [0] => mysqli Object ( [affected_rows] => -1 [client_info] => mysqlnd 8.2.30 [client_version] => 80230 [connect_errno] => 0 [connect_error] => [errno] => 1064 [error] => 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 '' at line 1 [error_list] => Array ( [0] => Array ( [errno] => 1064 [sqlstate] => 42000 [error] => 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 '' at line 1 ) ) [field_count] => 0 [host_info] => fredericia-skakforening.dk.mysql via TCP/IP [info] => [insert_id] => 0 [server_info] => 10.6.23-MariaDB-ubu2204 [server_version] => 100623 [sqlstate] => 42000 [protocol_version] => 10 [thread_id] => 41201408 [warning_count] => 0 ) [1] => SELECT * FROM saeson WHERE Aarstal = ) ) [1] => Array ( [file] => /customers/5/9/2/fredericia-skakforening.dk/httpd.www/pointlyn.php [line] => 6 [function] => SetAarstal [class] => Saeson [type] => -> [args] => Array ( [0] => ) ) ) [previous:Exception:private] => [sqlstate:protected] => 42000 ) Uncaught exception: 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 '' at line 1