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