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='c1e4a10f7406f380572acb202c6eb38a'' at line 1