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