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