Derby's play-off hopes suffered another blow when they squandered a two-goal lead to lose 4-3 at home to Cardiff City in another roller-coaster match at Pride Park.
Steve McClaren's team had come from three goals down to draw with Bristol City at the weekend but this time they were cruising when Julien de Sart's first goal for the club and another from Darren Bent put them in front inside 17 minutes.
But this time it was Cardiff who hit back through two Kadeem Harris goals either side of half-time before a great strike by Craig Noone put the visitors in front.
Bent headed an equaliser only for Cardiff to have the final word when Joe Ralls coolly converted a last-minute penalty to leave Derby adrift of the top six.
Cardiff named the same team that won 2-0 at Leeds on Saturday but Derby made three changes from the draw against Bristol City. Midfielders Bradley Johnson and Craig Bryson were missing with injuries while winger Abdoul Camara was left out because he is about to become a father.
Derby had been awful in the first half against Bristol City but they went ahead in the seventh minute when Allan McGregor parried an Alex Pearce header and De Sart put the rebound in from inside the six-yard box.
It got even better for the home side 10 minutes later when Cardiff's defence was wrong-footed by a mishit shot from Tom Ince and Bent took advantage to lift the ball over McGregor from eight yards.
Cardiff almost hit back immediately when Harris burst through on the left and forced Scott Carson to turn his angled drive behind but Derby were moving the ball well and were close to a third in the 26th minute, this time Bent seeing his shot deflected for a corner.
McGregor made another good save after Ince cut inside from the right in the 31st minute but was relieved to see a Will Hughes strike dip just wide as Derby again found space around the Cardiff box.
But the visitors got a foothold in the game in the 41st minute when the ball dropped for Harris on the edge of the area and his volley took a deflection to loop over Carson.
It was Harris again who pounced at the start of the second half when he smashed the ball in after a long throw from Aron Gunnarsson was flicked on and the game was turned on its head in the 57th minute when Noone lashed a shot past Carson from 20 yards.
But the match was so open more goals were inevitable and Derby equalised in the 74th minute when Marcus Olsson crossed from the left and Bent headed past McGregor from eight yards.
Derby looked the more likely side to win it but Cardiff broke up the right and substitute Rhys Healey was tripped by Alex Pearce and Ralls sent Carson the wrong way with the spot-kick.
Derby boss Steve McClaren:
"We've gone from a team who were hard to beat and defended very, very well to conceding seven in two games and you don't collect points doing that.
"But the spirit in the team that was there Saturday was there tonight. We equalise after going down, we're not disheartened by that but then a sucker punch at the end and it's been a disappointing three days.
"This is the first defeat at home since September so let's not panic and over-react and say the wheels have come off, but we have to work hard on the training field. We'll work on things and we move on."
Cardiff boss Neil Warnock:
"That's what you call old fashioned football, end-to-end stuff and that's why I love the game and it was great to be involved in one like that, especially coming out on the right side.
"It gives me a lot of pride when I see us come to a place like this and stand up and be counted and that's why I love the Championship more than any other because you get genuine lads in this level.
"I was disappointed at the start, I know we were two goals down but it was our own fault really, it wasn't so much that they were so good it was how poor we were.
"The goal before half-time helped us enormously and we talked about not thinking about drawing the game but trying to win it. I think we can go anywhere and give people a good game now, the biggest problem we've got is ourselves."