MILWAUKEE (AP) — A.J. Ramos walked consecutive batters to force in the winning run with two outs in the 10th inning, handing the Milwaukee Brewers a 4-3 victory over the New York Mets on Friday night.

Ramos relieved Jerry Blevins with runners at first and third, walked Hernan Perez on four pitches then skipped his 3-1 pitch to Travis Shaw to end it. That scored Eric Sogard, who singled with one out off Robert Gsellman (4-1) to spark the rally and snap an 0-for-28 skid. Sogard, newly recalled from the minor leagues, advanced to third on Christian Yelich’s single off Blevins.

gettyimages 962547472 Ramos Walks In Winning Run To Give Brewers Victory Over Mets

New York Mets’ AJ Ramos walks off the field after giving up a walk to Travis Shaw #21 of the Milwaukee Brewers to force in the winning run in the tenth inning at Miller Park on May 25, 2018. (Photo by Dylan Buell/Getty Images)

Both teams had other late scoring opportunities erased on the basepaths. Asdrubal Cabrera was thrown out at second in the top of the 10th by right fielder Domingo Santana after trying to stretch a single.

Shaw was doubled off second after charging for home on Manny Pina’s hard liner to left. He made up for the mistake with his game-winning walk in the 10th.

Jeremy Jeffress (4-0) picked up the win with 1 1/3 scoreless innings.

The Mets tied it at 3 in the ninth by getting to the Brewers’ normally lights-out bullpen. Corey Knebel allowed two walks with two outs before giving up Jose Bautista’s tying single.

The rally bailed out ace Noah Syndergaard from being tagged with a loss. The long-haired right-hander struck out eight over six innings, allowing six hits and three runs, though the Brewers got to him early with Shaw’s solo shot in the second.

TRAINER’S ROOM

Mets: C Kevin Plawecki caught seven innings Thursday night in his second rehab game for Triple-A Las Vegas. He is 2 for 6 with a homer and two RBIs in those two games. Plawecki has been on the DL since April 12 with a broken left hand. … OF Yoenis Cespedes (right hip) took batting practice on the field Thursday and was running lightly Friday.

Brewers: OF Ryan Braun, who was 1 for 4 Thursday in his first game off the DL, was not in the starting lineup Friday, but Counsell said it was a planned day off.

UP NEXT

Mets: LHP Jason Vargas (1-3) is 21-11 in 50 career starts in May for a .656 win percentage, the highest of any month for his career.

Brewers: RHP Chase Anderson (4-3) allowed one run on two hits in a 6 1/3-inning outing against the Mets on April 14 at Citi Field.

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)