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