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