– Bartolo Colon became the first pitcher in at least 100 years to beat the same opponent with seven different teams, stopping Baltimore once again and leading the New York Mets past the Orioles 3-2 Tuesday night.

Colon (5-1) took a shutout into the eighth inning before Manny Machado hit a solo home run with one out. The Mets won after getting blanked 1-0 in their previous two games.

New York ended its scoreless streak at 21 innings when Daniel Murphy hit an RBI single in a three-run fourth, and won for just the second time in seven games.

Baltimore began its weeklong visit to Citi Field and Yankee Stadium with its second loss in seven games. The Orioles have lost seven in a row to the Mets overall.

Three weeks shy of his 42nd birthday, Colon struck out nine, walked none and gave up six hits in 7⅔ innings.

Jeurys Familia closed for his major league-leading 11th save in as many chances, giving up Chris Davis’ sixth homer on his first pitch.

Colon improved to 13-8 vs. the Orioles. He first beat them in 1999 when Cal Ripken was their face of the franchise — Colon started off this game by striking out 22-year-old star Machado on three pitches.

Colon has defeated the O’s while pitching for Cleveland, the White Sox, the Angels, Boston, the Yankees, Oakland and now the Mets.

STATS said its research dating to 1914 shows no other pitcher who has topped the same opponent with seven different clubs. Dan Haren, David Wells and Burleigh Grimes were among the seven to beat a team six ways.

Bud Norris (1-3) gave up all three Mets runs in the fourth.