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