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