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