Fix error in get_active_open(_private)_challenges query