It took seven Phillie pitchers, two Pirates errors and a bunch of misplays, but the Phils won ugly last night, topping Pittsburgh 3-1 to snap a nine-game winning streak for the Pirates.

Pettibone started the game for the Phillies and pitched well, holding the Pirates to a run over 5 2/3 innings on a solo homer by Garrett Jones. Pettibone’s departure gave way to an ugly performance by a slew of relievers as Diekman, Aumont, Ramirez and Bastardo somehow managed to throw two scoreless innings despite allowing three hits and three walks. Justin De Fratus bailed them out, striking Jordy Mercer out swinging with the bases loaded to end the eighth, and Papelbon threw a scoreless ninth.

The Phillies were miserable on the bases, twice benefiting from misplays by Pirate outfielders that should have left them with a runner on second and nobody out. In the second, Brown was thrown out at third trying to turn his two-base gift into a three-base gift. In the ninth, Mayberry was picked off base after a misplay in left had given him a leadoff double. It’s probably not the way to go given that runs look likely to be scarce in the series. The Pirates have scored five runs in their last three games and the Phillies have scored seven.

The Phillies are 40-44 on the year after beating the Pittsburgh Pirates 3-1 last night.

Pettibone got the start for the Phillies and went 5 2/3 innings, allowing a run on three hits and three walks. One of the hits went for extra-bases, a solo home run. He came into the start with six strikeouts in 15 innings over his last three outings, but struck out six last night.

Starling Marte led off the bottom of the first with a single into left. Russell Martin was next and lined to short with Rollins throwing to first in plenty of time to double-off Marte. Pettibone walked Andrew McCutchen, but retired Garrett Jones on a ground ball to first to end the inning.

Pettibone came into the game having gotten into huge trouble in the first inning in two of his last three starts. He gets a lot of help from the line out double-play this time and keeps the Pirates off the board despite the leadoff single and two-out walk.

He struck out Pedro Alvarez and Neil Walker in a 1-2-3 second.

He got Travis Snider looking to start the third. The pitcher Brandon Cumpton was next and hit a fly ball to right that Delmon Young dropped for an error. Marte was next and grounded to short with Cumpton forced at second for the second out. Marte stole second before Martin walked on five pitches, putting runners on first and second with two down for McCutchen. McCutchen reached on an infield single, loading the bases for Jones. Pettibone got Jones swinging 2-2 to leave the bases loaded.

Huge strikeout for Pettibone with the bases loaded keeps the Pirates off the board despite an error, a single, a walk and a stolen base in the frame.

Pettibone threw a 1-2-3 fourth and a 1-2-3 fifth.

He started the sixth up 3-0. He walked Martin on five pitches to start the inning, but got McCutchen to ground into a double-play behind him. It cleared the bases for Jones, which was good because Jones hit a 2-1 pitch out to center, cutting the lead to 3-1. Diekman came in to pitch to the lefty Alvarez and walked him on five pitches. Walker struck out looking to leave Alvarez at first.

Walking the leadoff man is never good, but getting the double-play behind him is the way to go when you do. Phils were fortunate Jones picked the sixth and not the third to hit his homer.

Diekman faces two batters in the game, walking one and striking out the other. He’s walked 22 in 33 1/3 innings for his career.

Aumont started the seventh. Jordy Mercer led off and dumped a hit into left. Brown took the ball moving towards the line and Mercer went for two. Brown’s throw wasn’t especially strong, but it was on line and in time to get Mercer going for second for the first out. Snider was next and singled to right, but Aumont got the next two to leave him at first.

Aumont allows two hits in a scoreless frame, getting a lot of help as Brown throws Mercer out going for two on the leadoff single. Hasn’t walked anybody in either of his last two outings, though, which is a good sign. He’s allowed 13 walks 18 innings on the year.

JC Ramirez started the eighth and walked the leadoff man Martin on five pitches. McCutchen flew to center for the first out and Bastardo came in to pitch to the lefty Jones. Righty Brandon Inge hit for Jones and Bastardo struck him out swinging for the second out. Bastardo walked Alvarez 3-2 and a single to left by Walker loaded the bases for the righty Mercer with two down. De Fratus came in to pitch to Mercer and struck him out swinging 1-2 to leave the bases loaded.

If I haven’t been clear about this before, I’m really against walking the leadoff hitter. You shouldn’t count on allowing two walks and a single in an inning without giving up a run. Martin walks to start both the sixth and the eighth, but doesn’t score in either frame.

Ramirez faces two batters, allowing a leadoff walk and retiring the other. Last night’s walk to Martin is the only hit or walk he’s allowed over four innings in four appearances.

Bastardo faces three hitters, allowing a hit and a walk and getting one out. He’s walked 15 in 28 innings on the year.

De Fratus faced one batter and struck Mercer out with the bases loaded to end the eighth. He’s walked ten in 16 1/3 innings for the year.

Papelbon set the Pirtes down in the ninth to earn his 16th save.

Second scoreless outing for Papelbon in a row, coming off a funk where he allowed five runs in five innings over five appearances.

Overall the pen went 3 1/3 scoreless innings, allowing three hits and three walks. They struck out three. Bastardo threw 16 pitches in the game. He was the only reliever above 12.

The Phillie lineup against righty Brandon Cumpton went (1) Michael Young (2) Utley (3) Rollins (4) Howard (5) Brown (6) Delmon Young (7) Revere (8) Ruiz.

Utley walked with one out in the top of the first, but Rollins and Hoaward went down behind him.

Brown led off the second and lined a ball to right that probably should have been caught, but wasn’t. Snider played it on a bounce and the ball got away from him. Then he struggled trying to pick it up. Brown took second and then tried for third, but Snider’s throw came in to Walker and Walker threw to third in time to get Brown for the second out. Delmon Young and Revere went down behind Brown.

Brown didn’t look to be running hard out of the box on the ball he hit to right. Whether he was or wasn’t, second base would have been a nice place to be with nobody out given the multiple gifts Snider offered up on the play.

Michael Young reached on an infield single with two outs in the third. Utley grounded to Walker to end the frame.

The Phils went in order in the fourth.

Ruiz was hit by a 1-2 pitch with two outs in the fifth. Pettibone grounded softly to first for the third out.

Young singled into center to start the sixth. Utley was next and grounded to second with Young forced at second for the first out. Rollins followed with a soft single to right that put men on first and second for Howard. Howard lined a single to left-center, scoring Utley (1-0) and moving Rollins up to third. It brought Brown to the plate with one down and men on the corners. He flew to center for the second out, deep enough for Rollins to tag and score. 2-0 with two down and Howard on first for Delmon Young. Young lined a 1-1 pitch to the gap in left-center for a double. Howard rolled around third and tried to score. McCutchen got to the ball quickly and threw to Mercer at short. Mercer’s throw home was on line, but Martin didn’t handle it cleanly. Howard scored (3-0) and Mercer was charged with a tough error. Lefty Justin Wilson came in and got Revere on a ground ball to second, leaving Young stranded.

Howard is really slow, but he probably would have slid in safe to home on the Young double even if Martin had handled Mercer’s throw.

The lead was cut to 3-1 when Wilson set the Phils down in order in the seventh. Frandsen hit for Diekman and popped to third for the second out.

Righty Bryan Morris pitched the eighth for Pittsburgh. Howard chopped a single on the left side of the infield with two outs, but Brown struck out trying to check his swing 0-2 to leave him at first.

Mayberry led off the ninth and doubled to left off the glove of Marte. Revere tried to bunt him up to third, but missed an 0-1 pitch and Martin threw to second and picked Mayberry off for the first out. Revere grounded to second for the second out before Ruiz singled to left. Nix hit for De Fratus. Ruiz took second on a wild pitch, but was left stranded when Nix struck out swinging.

Second huge base-running mistake of the game for the Phils were a runner on second base with nobody out was erased. Brown in the second and Mayberry in the ninth.

Marte should have caught Mayberry’s ball. In both the second and the ninth, the Phillies got a gift from a Pirates outfielder that should have left them with a runner on second and nobody out. In the second, Brown was out going for third. In the ninth, Mayberry was picked off of second. That’s terrible.

Michael Young was 2-for-4 in the game. He’s 8-for-his-last-19. 419/432/535 in his 44 PA batting #1 in the order this year. So I’d go with that for a while.

Utley 0-for-3 with a walk.

Rollins 1-for-4 with a strikeout. He’s slugging .292 with two extra-base hits, both doubles, in his last 120 plate appearances. Shouldn’t be hitting third. His isolated power for the year in .098, which is his worst mark in any year he’s gotten 100 PA.

Howard 2-for-4 with an RBI. Managed to score from first on a two-out double, but just barely. Came into the game 0-for-his-last-18.

Brown 1-for-3 with an RBI. Miserable base-running in the second. Threw Mercer out at second in the seventh. Sac fly with one out in the sixth. Walked in 9.9% of his 121 PA in June after not drawing a walk in 109 PA in May.

Delmon Young 1-for-3 with a double and an RBI. Dropped a fly ball for an error. 12-for-his-last-26 with two walks, three doubles and a home run. After 301 1/3 innings in right field, FanGraphs has his UZR/150 there at -36.5, which is the worst mark among the 40 players across both leagues who have played at least 200 innings in right this season.

Revere 0-for-4. Came into the game 9-for-his-last-16. 313/350/365 over his last 224 plate appearances with a .349 BABIP.

Ruiz 1-for-3 with a hit by pitch and a single that should have driven in Mayberry, but instead drove in nobody. Three extra-base hits, all doubles, in 102 PA for the year and an isolated power of .033.

Lannan (1-2, 4.83) faces lefty Jeff Locke (7-1, 2.06) tonight. Righties are hitting 316/370/500 against lefties for the season and lefties 167/231/167. Opponents are hitting .199 against Locke for the year. He has a 1.07 ERA over his last eight starts. He’s been outstanding this year. If there’s a chink in his armor it’s that he’s walked a lot of right-handed hitters. He’s walked about 12% of the righties he’s faced this season.