NEW YORK -- For the New York Mets, the third epic extra-inning game was the charm.
Andrew Brown's two-run single with two outs in the bottom of the 13th inning early Tuesday morning lifted the Mets to a stunning 5-4 win over the Arizona Diamondbacks in front of what remained of a crowd of 22,240 at Citi Field.
"If you're going to be out there that long, you might as well win the game," Mets manager Terry Collins said. "You want to win the game -- bad."
The Mets, in particular, wanted to win after enduring losses in 15-inning and 20-inning games to the Miami Marlins on April 29 and June 8, respectively.
New York seemed destined for another marathon defeat when Arizona's Cody Ross homered leading off the top of the 13th. However, the Mets pieced together an unusual winning rally in the bottom of the inning that starred players who didn't begin the season in New York.
Josh Satin, whose RBI single in the ninth inning tied the score, delivered a one-out double -- his third hit of the night and his 15th in 38 at-bats in since he was recalled from Triple-A Las Vegas on June 11 -- off Josh Collmenter (4-1).
John Buck, who ended the night 0-for-4 with three walks -- the last two intentional -- was intentionally passed to bring up the pitcher's spot. With the Mets out of position players, phenom pitcher Matt Harvey pinch-hit for David Aardsma (1-0) and bunted the runners over.
Collmenter then intentionally walked Omar Quintanilla, who didn't begin the season in New York, to bring up Brown, who also opened the year at Las Vegas.
Brown laced a 1-2 pitch into the left-center-field gap, and Satin and Buck raced home as the Mets poured out of the dugout and mobbed Brown in between first and second base at 12:24 a.m., five hours and 13 minutes after the game's first pitch.
"It's just a fun inning," a grinning Brown said. "I mean, that's the way it's supposed to be written up, I guess, right?"
The Mets certainly seemed to be authoring the recipe for a loss by stranding 18 runners, including 12 in scoring position, in the first 12 innings. They came back from a 3-0 deficit by scoring single runs in the seventh, eighth and ninth. However, they left the winning run at second in the ninth and at third in the 10th, and they left the bases loaded in the 11th.
"It feels amazing," Brown said. "Just indescribable to go out there and get a win the way we did. We didn't quit playing. That's the best baseball you can have."
The Mets (34-45) have alternated wins and losses in their last five games. The Diamondbacks (42-40) lost their fourth in a row and fell for the seventh time in their last eight games.
"You have to give (the Mets) credit for battling (and) coming back -- they never gave up," Ross said. "They kept battling, they kept going. You've got to give them a lot of credit for that. Just a tough one."
Aardsma, who began the season in the minor leagues with the Marlins and made his Mets debut in the 20-inning loss to Miami, earned his first major league win since July 28, 2009, when he was pitching for the Mariners.
Satin, Quintanilla and Marlon Byrd all had three hits for the Mets. David Wright had two hits, including an RBI single in the seventh, and Eric Young had two hits, including an RBI double in the eighth.
Paul Goldschmidt hit a two-run homer in the first, and Aaron Hill went 3-for-5 with an RBI and a run for the Diamondbacks. Ross was the only other Arizona player with two hits.
Diamondbacks starter Wade Miley danced out of trouble throughout 5 2/3 shutout innings, during which he allowed six hits and four walks while striking out seven. Arizona starters have gone 23 straight games without recording a victory.
Mets starter Shaun Marcum allowed three runs on six hits and three walks with two strikeouts over six innings.
Arizona right fielder Gerardo Parra left the game for precautionary reasons after hitting the dirt on the warning track face-first pursuing Quintanilla's triple in the eighth inning. He remained on the ground for several minutes before walking off under his own power.
NOTES: The Mets and Diamondbacks paid tribute to the 19 firefighters who died Sunday responding to a forest fire in Yarnell, Ariz., by hanging "Yarnell 19" uniforms in their dugouts. A moment of silence was also held prior to the game. The Diamondbacks said players and coaches will wear black arm bands on the right arm of their uniforms for the four-game series in New York. Upon returning home Friday, the team will unveil a memorial patch that will be worn the remainder of the season. ... The Diamondbacks placed RHP Trevor Cahill on the disabled list with a right hip contusion and recalled RHP Chaz Roe in a corresponding move. Cahill was hit on the hip by a line drive against the Marlins on June 19, and while he left that start after one inning, he made his next two starts as scheduled but allowed 12 runs in 9 1/3 innings. ... Arizona manager Kirk Gibson said INF Willie Bloomquist, who hasn't played since he was hit on the left hand by a pitch last Wednesday, is getting better. ... Mets SS Ruben Tejada, who has been on the disabled list since May 30 with a right quad strain, played nine innings for the rookie-level Gulf Coast League Mets on Monday. He next will move his rehab to Triple-A Las Vegas. ... Mets minor league OF Brandon Nimmo won the fan vote for the final spot on the U.S. Team roster for the All-Star Futures Game, which will be played July 14 at Citi Field.