Fixing task to update rankings by pulling only content ids not using distinct