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