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