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