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