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