Get id from the first parent