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