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 year = 2022 AND stage = 1' at line 2 in /var/www/clients/client1/web1/web/travspelet/user/user_stats_races.php:119
Stack trace:
#0 /var/www/clients/client1/web1/web/travspelet/user/user_stats_races.php(119): mysqli_query()
#1 {main}
  thrown in /var/www/clients/client1/web1/web/travspelet/user/user_stats_races.php on line 119