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