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