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