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