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