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