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='74c6afb74dcf719f4903bd53dea60b08'' at line 1