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