Revert and fix error in get_active_open(_private)_challenges_count query