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