Question: how is korra the last avatar?
Answer: No, she is merely the beginning of a new cycle. Her connection to the past avatars was destroyed, but upon merging with Raava again, she became a full Avatar again. There's no indication that when she dies, the Avatar cycle will end. ... She's merged with Raava, she has the ability to bend all the elements (and energy).