KANSAS CITY, Mo. -- In this series, it wasn't safe to take a lead.
The Chicago White Sox overcame deficits of 4-1 and 5-0 to beat Kansas City in the first two games. On Thursday night, it was the Royals' turn as they scored four runs in the eighth, capped by Mark Teahen's inside-the-park homer, and emerged with a 4-1 victory to avoid being swept.
"When I hit it, I was going hard trying to make sure I got a triple," said Teahen, who also had an inside-the-parker on May 27 against Minnesota.
But as second baseman Alexei Ramirez hesitated momentarily before making the relay throw to the infield, third-base coach Luis Silverio frantically waved on Teahen.
"I trust him. He hasn't run me into too many outs," Teahen said.
The frantic ending ruined an otherwise splendid outing by White Sox starter Mark Buehrle, and kept Royals starter Zack Greinke from losing one of the best games he's thrown all year.
Jermaine Dye, after learning he finished second in fan voting for the final AL All-Star spot, crushed a towering home run off Greinke in the fourth. Then Buehrle, a longtime Royals nemesis, took a four-hit shutout into the eighth but came out after giving up an RBI double to Mike Aviles that tied it 1-1.
After Jose Guillen made it 2-1 with an RBI double off Octavio Dotel, Teahen slammed Boone Logan's pitch into right-center and provided what Royals manager Trey Hillman calls one of the most thrilling sights in baseball.
"I don't think there are many more exciting things for the fans than to see a come-from-behind victory like that and then topped off with an inside-the-park home run," Hillman said. "It's pretty exciting."
As Teahen kept coming, the throw came wide to catcher A.J. Pierzynski and the runner slid around his sweeping tag.
"You have to give credit to them. They kept battling," Chicago manager Ozzie Guillen said. "The last three days here they have battled back. It's fun, because from one inning to another, you don't know what's going to happen."
Dotel had struck out the side on 10 pitches in the ninth inning of Chicago's come-from-behind, 7-6 victory the night before.
The winner was reliever Ron Mahay (5-0), who pitched one inning and struck out two. Joakim Soria, the Royals' only All-Star, pitched the ninth for his 24th save in 26 opportunities.
Buehrle gave up a leadoff single to John Buck in the eighth and David DeJesus hit a hot grounder to shortstop Orlando Cabrera, who tossed to Ramirez for the force.
But when Ramirez threw to first for the double play, Paul Konerko dropped the ball after a wide throw and DeJesus was safe. Originally, official scorer Del Black did not rule an error. But he later changed the call to an error on Konerko.
Aviles then doubled home the tying run, bringing Dotel out of the bullpen. Guillen mashed a double off the wall in straightaway center before Teahen came to the plate.
Buehrle (6-8) gave up six hits in 7 1/3 innings and had a season-high eight strikeouts while losing to the Royals for the first time in five decisions. It was the third time this year he has not issued a walk.
"I felt strong until the last inning," he said. "Everything happened so quick. It seemed like five seconds, and we're down 4-1."
Dye broke an 0-for-13 slide with the towering homer off Greinke, who went seven innings and gave up six hits, with one walk and eight strikeouts.
Steve Mingori, who pitched for his hometown Royals from 1973-79, died of natural causes, the club said. Mingori was 64. He made 264 of his 385 major league appearances with the Royals. ... The Royals have extended their working agreement with the Class-A Wilmington (Del.) Blue Rocks through the 2010 season. ... Because of the error, both runs charged to Buehrle were unearned.