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