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