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