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