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