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