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