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