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