Patrick Semansky, Associated Press
BALTIMORE — Brendan Ryan scored the tiebreaking run in the ninth inning on a wild pitch by Jim Johnson, and the New York Yankees defeated the Baltimore Orioles 6-5 Thursday night after blowing a four-run lead.
Mark Reynolds and Curtis Granderson homered for the Yankees, who remained one game behind Tampa Bay for the second AL wild card. New York travels next to first-place Boston for a weekend series between division rivals.
New York led 5-1 before Nick Markakis hit a solo shot in the seventh and Danny Valencia homered with two on against David Robertson in the eighth.
But the Yankees bounced right back in the ninth with an unearned run against Johnson (3-8). Ryan, obtained in a trade with Seattle on Tuesday, led off with a single. Chris Stewart bunted, and Johnson threw wildly into center field for an error that left two on.
After another bunt put the runners at second and third, Johnson uncorked a pitch that didn't reach the plate and bounced to the backstop.
Mariano Rivera (6-2) got straight three outs in the bottom half and was given credit for the win by the official scorer because Robertson was ineffective in the eighth.
The start was delayed by rain for 1 hour, 18 minutes.
After defeating New York in the opener of the four-game series Monday night, the Orioles needed to win only one of the next three to capture the season series for the first time since 1997. Instead, the Yankees emerged with a 10-9 edge in 2013.
Baltimore trails New York and Cleveland in the wild-card chase and fell into a tie with idle Kansas City, 2½ games behind the Rays.
Orioles starter Wei-Yin Chen gave up five runs and seven hits in 6 1-3 innings. After a rocky start, the left-hander retired 13 straight before Granderson homered in the seventh to make it 5-1.
The injury-riddled Yankees lost another important player when center fielder Brett Gardner left in the first inning with a strained muscle on his left side. The extent of the injury was not immediately known.
Reynolds put the Yankees up 2-0 in the second with a drive to left after Eduardo Nunez hit a leadoff single. It was Reynolds' fourth homer in 22 games since joining New York in mid-August.
Sixty of Reynolds' 200 career home runs came with the Orioles, from 2011-12.
Eight of the first 14 batters Chen faced reached base. In the third, after Alfonso Soriano sandwiched a double between two walks, Vernon Wells delivered a two-run single.
In the bottom half, Baltimore used an RBI single by Manny Machado to close to 4-1.
Granderson, who replaced Gardner in center field, chased Chen with his second homer in two games and New York's 10th in the four-game series.
Markakis homered off David Huff in the bottom half. Huff was originally supposed to start the game, but Yankees manager Joe Girardi figured the left-hander would be more comfortable coming out of the bullpen. Phil Hughes started and left in the fourth.
In the Orioles eighth, Soriano made a leaping grab at the left-field wall to rob Machado of a home run and keep New York's lead at 5-2. But with two outs, Adam Jones and Markakis singled before Valencia ripped Robertson's first pitch over the left-field wall.
- BYU basketball: Cougars outlast San Francisco...
- Ranking the best NBA players to ever come out...
- WCC Championship game tale of the tape, BYU...
- San Francisco coach apologizes for postgame...
- BYU football: Bronson Kaufusi excited about...
- BYU basketball: Tyler Haws passes Russell...
- BYU report card vs. San Francisco: Cougars...
- Photo story: What teenagers taught me at the...
- BYU basketball: Cougars outlast San... 83
- Utah basketball: Runnin' Utes come up... 74
- High school boys basketball: 5A/4A/1A... 57
- BYU basketball: Despite dearth of... 34
- San Francisco coach apologizes for... 32
- Utah basketball: Runnin' Utes eager to... 31
- BYU basketball: Bottom seed LMU knocks... 26
- Krystkowiak asks Runnin' Utes to stay... 24