• Hero: Phelps, whom the Pirates claimed off waivers from the Yankees in June, went 3-for-4 with three RBIs. His home run capped off the Pirates' five-run sixth inning.
• Unsung hero: Pirates starter Paul Maholm won for the third time in four starts and improved to 7-12 for the year, scattering six hits and three runs in six-plus innings.
• Losing effort: Perez retired 11 straight batters and held Pittsburgh scoreless for five innings, but his throwing error in the sixth helped spark the Pirates' big inning.
• How about the new guy? Shortstop Cesar Izturis, acquired from the Cubs last week, scored two runs. His sacrifice bunt in the sixth led to the Perez error and got the Pirates' big rally going.
• Quotable: "Oliver was throwing great. The offense had to figure him out. That's kind of what happened." -- Maholm
-- ESPN.com news services
Pirates 8, Mets 4
NEW YORK (AP) -- After five innings Thursday, the Pittsburgh Pirates had managed to scratch one infield hit against Oliver Perez and trailed by a run. Eleven batters had gone down in a row, four straight on strikeouts. It was a depressingly familiar pattern for a team that had lost 10 of 11 games since the All-Star break.
Quickly, everything changed. And before they knew it, the Pirates had an 8-4 victory over the Mets.
"When you put hits together, good things happen," noted Pirate manager Jim Tracy, repeating an old baseball adage.
Nate McLouth opened the sixth inning with a broken-bat single, and pitcher Paul Maholm followed with an infield hit. Then Perez threw away a bunt, allowing the tying run to score and setting up a five-run rally. Xavier Nady delivered a two-out, two-strike single for two runs, and Josh Phelps followed with a two-run homer.
"We caught a break on that bunt," Tracy said. "That set the stage, and then we got two huge two-out hits. When we do things like that, we're a good club."
Maholm (7-12) made it all possible. He matched Perez after allowing a first-inning run, waiting for Pirates hitters to do something positive. This is a team that is next to last in the NL in runs, but the pitcher had faith in the offense.
"Oliver was throwing great," Maholm said. "The offense had to figure him out. That's kind of what happened. I've got a job to do no matter how many runs we score. I have all the confidence in the world in my team."
It was the third win in four starts for Maholm, and Tracy was delighted with the left-hander.
"Maholm gave us another excellent pitching effort," the manager said. "His command was terrific. The first inning, he was a little out of kilter but he minimized the damage."
Perez protected the 1-0 lead into the sixth.
He ran into trouble in the sixth on McLouth's broken-bat single. Maholm faked a bunt and then beat out a chopper to shortstop. Cesar Izturis sacrificed, and when Perez made a bad throw, McLouth scored the tying run.
"It's part of the game. I just threw it away," Perez said. "I got to the ball quickly. Maybe I tried to throw too fast and that's why I threw it away."
Perez retired the next two hitters and had two strikes on Nady before surrendering a two-run single. Then Phelps followed with his third home run.
"It was a 2-2 fastball over the heart of the plate," Phelps said. "That's the best you can hope for in a count like that."
"Everything happened kind of quick," Mets manager Willie Randolph said. "But before that, you've got to field the position. It was a pretty good bunt, but if you make the throw, you get the guy out."
After Lastings Milledge homered against Maholm in the bottom of the sixth, Pittsburgh added three runs in the seventh on five straight two-out hits. Jason Bay and Nady had RBI singles, and Phelps doubled against reliever Joe Smith, who was optioned to Triple-A New Orleans after the game.
Reyes homered in the eighth against Shawn Chacon.
Reyes' first-inning steal was his 48th this season. His eighth-inning homer was his seventh. ... Mets CF Carlos Beltran remained sidelined by an abdominal muscle strain. ... Perez threw 111 pitches in six innings, 72 for strikes. ... Marte has retired 27 straight left-handed batters and has a 0.00 ERA in eight games during July. ... Shea Stadium was being used for a pregame movie shoot starring Robin Williams and John Travolta, eliminating batting practice for both teams.
'Professor' Cano and more Pete Alonso stories left on the E:60 cutting room floor
Here are a few tales of the Mets slugger that didn't make it into "Poking the Polar Bear" -- which airs today on ESPN.
MLB Sunday Spotlight: What we're watching for in Indians-White Sox
A rookie phenom faces the most dominant pitcher in baseball so far as the White Sox host the Indians on Sunday night.
Padres look to close out series vs. D-backs
The deciding contest of three-game series have proved difficult thus far this season for the upstart San Diego Padres.
Blackmon, Rockies look to stay hot vs. Mariners
Charlie Blackmon has an uncomplicated view on hitting.
Rookies take spotlight in matchup between Astros, A's
The Oakland Athletics go for a three-game sweep and their ninth straight win in an effort to widen their gap over the visiting Houston Astros when the American League West powers continue their low-scoring series on Sunday afternoon.
Angels' Heaney set for duel with Rangers' Lynn
Andrew Heaney will take the mound for the Los Angeles Angels on Sunday afternoon against the Texas Rangers at Globe Life Field in Arlington, Texas, and that itself is a victory for the left-hander.