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