NEW YORK (AP) -- Josh Satin and the New York Mets were determined not to lose another long game at Citi Field, especially one that had pushed past 5 hours.
No worries. The suddenly smooth-swinging Satin and rookie Andrew Brown took care of it.
Brown hit a two-run single with two outs in the 13th inning and the Mets put together a pair of late rallies to beat the Arizona Diamondbacks 5-4 on Monday night, handing the NL West leaders their fourth straight loss.
''Walking a team off at the end - there's no greater feeling,'' Satin said after his second three-hit game in a row.
Satin tied it with an RBI single in the ninth off Arizona closer J.J. Putz, his first save opportunity since the ex-Met went on the disabled list May 8. Cody Ross led off the 13th with a homer against David Aardsma (1-0), but the Mets fought back again against the Diamondbacks bullpen.
Satin doubled with one out off Josh Collmenter (4-1) and John Buck was intentionally walked, putting the potential winning run on base. Mets pitcher Matt Harvey pinch hit for Aardsma and sacrificed the runners over.
After Omar Quintanilla was also intentionally walked, Brown lined an 0-2 pitch into left-center and was mobbed by teammates near first base well after midnight.
Collmenter slammed his glove to the ground and then yelled in frustration as he walked off the field.
''Give those guys credit for coming back,'' Diamondbacks manager Kirk Gibson said. ''It's a tough loss.''
Arizona right fielder Gerardo Parra was injured in the eighth when he hit his face hard on the warning track trying to make a diving catch on Quintanilla's triple. The Diamondbacks said a Mets team doctor ruled out a concussion for Parra, a 2011 Gold Glove winner.
Wearing black armbands on their jerseys to honor the 19 firefighters who died Sunday in a wildfire about 80 miles northwest of Phoenix, the Diamondbacks fell to 1-6 on a 10-game road trip against the NL East.
The Mets won for the fourth time in 12 home games, needing 5 hours, 13 minutes to secure it.
''If you're going to be out there that long you might as well win the game,'' manager Terry Collins said. ''We were out of pitching, I can tell you that.''
The Diamondbacks appeared poised to snap a three-game skid and end a long drought of winless starts by their starters at 23 games (0-10), opening an early 3-0 lead behind Paul Goldschmidt's two-run homer, his 20th, and Aaron Hill's RBI single in the second off Shaun Marcum.
''I thought that was going to be the one that sort of got us going as far as getting our starters a win,'' Ross said.
The bullpen spoiled it.
New York tied it in the ninth against Putz. Marlon Byrd hit a double off the very top of the wall - a call upheld by replay review - and Satin drove him in with a single. New York had an opportunity to win it there but Buck was thrown out trying to advance to second base on a wild pitch that moved Satin to third, ending the inning.
Putz said he felt fine, it was just poor execution against Byrd.
''I just didn't finish the pitch,'' Putz said of the split-fingered fastball that he wanted to bounce in the dirt.
Satin was called up when buddy Ike Davis was sent to Triple-A Las Vegas in a deep funk, and the 28-year-old first baseman with just 64 major league at-bats has been the team's hottest hitter the past week. He's batting .444 (12 for 27) in the last seven games, and earning more playing time.
''Josh deserves some at-bats. He's getting some big hits. It doesn't matter if they're left-handed or right-handed. He's getting big hits for us,'' Collins said. ''I'll tell you what: Every team has somebody that surprises you and saves you. And right now, he's our savior 'cause this guy has come up and filled a big hole for us.''
The Mets started their comeback after Wade Miley was lifted following 5 2-3 innings of shutout ball. He was the last Diamondbacks starter to win - on June 5.
David Wright had an RBI single off Brad Ziegler in the seventh and Eric Young Jr. a run-scoring double off David Hernandez after a 10-minute delay when Parra got hurt.
Parra was able to walk off the field without assistance after being examined by a Diamondbacks trainer and two EMTs right in front of the Arizona bullpen.
Quintanilla scored on Young's two-out double to make it 3-2.
Goldschmidt, who was 1 for 9 during a three-game weekend sweep in Atlanta, gave Miley a quick cushion. He hit a 2-1 pitch from Marcum after Hill was hit by a pitch with one out in the first. Hill added an RBI single in the second before Marcum settled in for six innings.
Then five Mets relievers shut down Arizona, giving up just four hits until Ross' homer.
NOTES: The Mets and Diamondbacks each hung a jersey in their dugouts bearing the name ''Yarnell'' - the locale of the fire - and the No. 19. Those jerseys were shown on the scoreboard at Citi Field during a moment of silence before the national anthem. ... Mets SS Ruben Tejada (strained quadriceps) played his third game for the Gulf Coast League Mets and went 2 for 4 with an RBI while playing all nine innings. Tejada will continue his rehab at Triple-A Las Vegas but will have to earn his way back to the big leagues, Collins said. ... Diamondbacks LHP Patrick Corbin (9-0) faces Mets RHP Jeremy Hefner (2-6) on Tuesday.