PHILADELPHIA -- Hanley Ramirez's error on Michael Young's grounder in the bottom of the ninth -- Ramirez's second error of the inning -- allowed the winning run to score Sunday afternoon as the Philadelphia Phillies ended the Los Angeles Dodgers' 10-game win streak with a 3-2 victory.
Ramirez's miscue also gave Philadelphia its first victory in three games under interim manager Ryne Sandberg. The Phillies had dropped their previous four.
The Dodgers lost for only the ninth time in their last 51 games.
With the score tied 2-2 and one out in the ninth, Casper Wells reached on Ramirez's throwing error. Carlos Ruiz, who went 4-for-4, then singled to right against Brandon League (6-4), with Wells advancing to third.
After an intentional walk to pinch-hitter Jimmy Rollins, Young, batting for shortstop Michael Martinez, grounded a ball to Ramirez at shortstop. He bobbled it, allowing Wells to score.
Jonathan Papelbon (3-1) picked up the victory with a scoreless inning in relief.
Andre Ethier gave the Dodgers a 1-0 lead when he hit Cole Hamels' first pitch of the second inning into the seats in right-center field for his ninth homer of the year.
Los Angeles extended its lead on a two-out RBI single by Jerry Hairston Jr. in the fourth, a broken-bat hit that barely eluded leaping Phillies shortstop Michael Martinez. It was just the second hit in 24 career at-bats against Hamels for Hairston.
The Phillies cut it to 2-1 on Darin Ruf's solo homer off Dodgers starter Ricky Nolasco in the fourth, Ruf's eighth home run of the season.
Philadelphia tied it in the sixth. With one out, Nolasco hit Chase Utley with a pitch, then allowed a single to Domonic Brown. On the play, right fielder Yasiel Puig threw to third in a vain attempt to cut down Utley, allowing Brown to take second.
Ruf then walked to load the bases and Cody Asche grounded into a forceout to chase in the tying run.
Nolasco pitched six innings and allowed two runs and five hits. He struck out five and walked one.
Hamels worked seven innings and allowed two runs and seven hits. He fanned eight without walking a batter.
NOTES: Hamels is 1-2 with four no-decisions since July 9, despite pitching at least seven innings and allowing two runs or fewer in six of those seven starts. He is 5-13 overall. ... Nolasco (9-9) had won his three previous starts. He is 4-1 since the Dodgers acquired him from Miami on July 6. ... Phillies 1B Kevin Frandsen went 0-for-4 and is hitless in his last 12 at-bats. He is also mired in a 2-for-22 slump. ... Utley went 0-for-3 and is hitless in his last 10 trips. ... Young, yanked from Saturday's loss to the Dodgers in the second inning with what was described as left ankle soreness, did not start Sunday because, he told reporters, he is plagued by Achilles' tendinitis, something that flares up on occasion and requires rest.