LOS ANGELES -- Chris Young was not sure what to expect from Javy Guerra after watching him walk the two batters in front of him.
But the D-backs outfielder knew one thing for certain: He was going to make the Dodgers right-hander throw him a strike before he swung.
Guerra, though, could not find the plate as he walked Young on four pitches to force in what proved to be the winning run as the D-backs beat the Dodgers, 5-4, on Tuesday night at Dodger Stadium.
It was the D-backs' 18th win in their last 21 games and they maintained their 8 1/2-game lead over the Giants in the National League West with 13 left to play while reducing their magic number to six.
The D-backs also stayed even with the Brewers in the race for the second-best record in the NL and home-field advantage in the NL Division series.
Guerra (2-1), who was working in his second inning, allowed a single to Gerardo Parra to lead off the 10th, and after a sacrifice bunt and strikeout, the Dodgers intentionally walked Miguel Montero.
Guerra then lost his feel for the strike zone and walked Paul Goldschmidt and Young on eight straight pitches to force home Parra.
"Honestly, I didn't know what to think. I was caught off guard -- his control had been so good," Young said. "Then after the intentional walk I was watching how he pitched to Goldy and I didn't know if it was intentionally or unintentionally, so I tried to go into the box ready, and I noticed that maybe after intentional walk to Miggy he lost his control a little bit so I was going to make him throw a strike."
J.J. Putz shut things down in the ninth for the D-backs to record his 40th save as the D-backs picked up their Major League best 44th come-from-behind win.
That they had to come from behind was a surprise given the fact that Ian Kennedy, who leads the NL in wins with 19, was on the mound.
Not only that, the D-backs spotted the right-hander a 2-0 lead thanks to Montero's two-run homer in the first inning off Chad Billingsley.
Kennedy, though, had a very atypical first inning.
Dee Gordon led off with a double, and after a Justin Sellers single, Matt Kemp hit a sacrifice fly to score Gordon.
It looked like Kennedy might escape without further damage after he got Juan Rivera to pop out for the second out of the inning. However, James Loney doubled home a run, Aaron Miles followed with an RBI single and Jerry Sands capped the inning with a run-scoring double that gave the Dodgers a 4-2 lead.
How uncharacteristic was the inning for Kennedy? Prior to Tuesday he had not allowed four runs in an outing, much less an inning, since July 3.
"I wasn't commanding as well as usual," Kennedy said. "It just goes back to my command wasn't as sharp as it has been, especially with two strikes, and they put the ball in play. I kind of let the team down. They gave me a two-run lead right off the bat and just felt like I just needed to go out there and throw strikes."
Kennedy was able to regroup after that and he held the Dodgers scoreless before being removed after six innings.
"No," Kennedy said when asked if he was disappointed in not picking up his 20th win. "All I care about is winning for our team. I'm glad we won. It kind of stinks that I didn't feel like I did my job. Just glad our team picked me up, just picked me up when I needed it."
The D-backs pulled to within 4-3 on a Montero sacrifice fly in the third and they tied things up in the seventh on Parra's eighth homer.
The seventh inning saw tension build between the teams.
First Parra took exception to Dodgers reliever Hong-Chih Kuo's up and in pitch when he squared around to bunt, and the Dodgers were not pleased when Parra in retaliation stood at home plate and watched his homer sail over the wall.
"Nothing, that's baseball, that's adrenaline," Parra said when asked about the incident. "That's it. He looked at me I looked at him, that's it."
Dodgers players in the dugout yelled at Parra as he rounded third base and catcher A.J. Ellis chastised him after he crossed home plate and the teams began yelling at each other from their respective dugouts.
"It's just emotional as much as anything," Dodgers manager Don Mattingly said. "Both teams are trying to win and you get emotional out there. You let it go at that."