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