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