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