Fatal error: Uncaught mysqli_sql_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 'AND event.xdate = xdate.id' at line 1 in /data/1/c/1c9e2f94-de61-428f-b8d5-f56bc5af4c8a/lidmanarkivet.se/web/include/function/get_year.php:4 Stack trace: #0 /data/1/c/1c9e2f94-de61-428f-b8d5-f56bc5af4c8a/lidmanarkivet.se/web/include/function/get_year.php(4): mysqli->execute_query('SELECT DATE_FOR...') #1 /data/1/c/1c9e2f94-de61-428f-b8d5-f56bc5af4c8a/lidmanarkivet.se/web/profile.php(9): get_year('', 2, Object(mysqli)) #2 {main} thrown in /data/1/c/1c9e2f94-de61-428f-b8d5-f56bc5af4c8a/lidmanarkivet.se/web/include/function/get_year.php on line 4