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 basketSession='6f28a7f6f46c8cd734228a5472b8de41'' at line 1