last_ids view