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