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