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