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