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