Previous Animation is Rendered

I needed to create a scene that had the same set and same character, but a different animation, so I duplicated the file and changed the animation. Now, when I render it, it renders the old animation? How do I fix this?