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