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