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