ST. PETERSBURG, Fla. – New York went ahead with help from a key Tampa Bay error, Russell Martin homered and had three RBI, and the Yankees regained sole possession of first place in the AL East with a 6-4 win over the Rays on Wednesday night.

Eliot Johnson’s errant throw to home plate that led to two runs in the seventh inning helped New York win for just the fifth time in 15 games.

BLUE JAYS 6, ORIOLES 4: Rookie Adeiny Hechavarria drove in the go-ahead run with a bunt single, and Rajai Davis homered and had three RBI as Toronto won at home to avoid a three-game sweep by Baltimore.

The Blue Jays ended Baltimore’s winning streak at three and knocked them out of a tie for first with New York in the AL East.

WHITE SOX 6, TWINS 2: Alex Rios homered twice and drove in a career-high six runs at Chicago. Rios hit a grand slam in the first and a two-run shot in the sixth.

ANGELS 7, ATHLETICS 1: Torii Hunter drove in three runs and Los Angeles completed a three-game sweep at Oakland after Athletics pitcher Brandon McCarthy took a liner off his head in the fourth inning.

McCarthy (8-6) was sent to the hospital after he was struck by Erick Aybar’s comebacker.

Howie Kendrick doubled and hit a two-run single to bring the Angels within 2½ games of Oakland for one of the two AL wild-card spots.

TIGERS 7, INDIANS 1: Miguel Cabrera hit a two-run homer in the first inning and Prince Fielder added a solo shot in the eighth as the Tigers avoided a three-game sweep at home and stayed one game behind the first-place White Sox in the AL Central.

RANGERS 7, ROYALS 5: Adrian Beltre hit a three-run homer and Michael Young also went deep for visiting Texas.

NATIONAL LEAGUE

METS 6, CARDINALS 2: R.A. Dickey became the first pitcher in the majors to win 18 games this season, and Ike Davis provided the cushion with a three-run homer at St. Louis.

The knuckleballer (18-4) allowed two runs in 62/3 innings, the first Mets pitcher to reach the 18-win mark since Frank Viola (20-12) and Dwight Gooden (19-7) did it in 1990.

NATIONALS 9, CUBS 1: Bryce Harper hit two homers and Washington went deep six times for the second consecutive game, sending Gio Gonzalez to his 18th victory in a win at Washington.

Adam LaRoche kept up his tear at the plate with three hits for the Nationals, who have won four straight and own the best record in the majors at 84-52. They maintained a 7½-game lead over Atlanta in the NL East.

PHILLIES 6, REDS 2: Erik Kratz hit a three-run home run and Chase Utley added a two-run shot at Cincinnati.

Halladay, 4-1 in his last six starts and 9-7 overall, scattered eight hits over 71/3 innings, allowing one run with five strikeouts.

BREWERS 8, MARLINS 5: Rickie Weeks homered twice to help Wily Peralta (1-0) win his first major league start and lead surging Milwaukee in a win at Miami.

Corey Hart also homered and drove in four runs for Milwaukee, which has won 13 of 16.

BRAVES 1, ROCKIES 0: Mike Minor (8-10) held Colorado hitless for six innings and Craig Kimbrel earned a four-out save as Atlanta won at home.

PIRATES 6, ASTROS 3: Kevin Correia pitched six solid innings as a fill-in starter and Alex Presley, a late addition to the lineup, had two hits and scored three runs as Pittsburgh won at home.