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