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