A goal from substitute Martin Vingaard on his debut left Manchester City cursing their luck as they were held 2-2 by Copenhagen in the UEFA Cup. Hughes: We're still in good shape
The midfielder stepped off the bench to drag his side level in stoppage time by heading home at the Parken Stadium.
It was cruel luck on City who seemed to be heading to a morale-boosting victory thanks to Stephen Ireland's 10th goal of the season.
However, they will take some consolation in that they have the benefit of two away goals in the return leg of the round-of-32 tie at Eastlands next week.
Nedum Onuoha also found the target before Ailton Almeida raised Copenhagen's spirits by pulling them level.
Mark Hughes's side carved out a good chance in the 11th minute when Ireland split the defence with a superb ball.
Wayne Bridge latched on to it and delivered the cross but Craig Bellamy had strayed offside and the move broke down.
The Danes responded and Micah Richards did well under pressure to clear a corner from Oscar Wendt at the back post four minutes later.
Then Shaun Wright-Phillips made made space down the right but his curling cross was easily cut out.
The winger again got clear in the 20th minute and tried to pick out Robinho only for the ball to go behind the Brazilian.
Robinho repaid the favour two minutes later by setting up Wright-Phillips but he saw his shot blocked by goalkeeper Jesper Christiansen.
Copenhagen were looking dangerous from set-pieces and Mikael Antonsson got clear of his marker in the 27th minute but headed over the bar following a corner from Wendt.
City took the lead two minutes later, though, and chalked up a vital away goal thanks to a dreadful error from Christiansen.
He allowed a weak shot from Onuoha to squirm under his body and over the line to the delight of the travelling fans.
Onuoha could not believe his luck and wheeled away to celebrate.
It was just his second senior goal while Christiansen was only in the team as new signing Johan Wiland was ineligible.
City began the second half brightly and Wright-Phillips skipped away in the 47th minute only to send his shot into the goalkeeper's body.
Play switched down to the other end and Zdenek Pospech carved out an opening for himself but dragged his effort wide of the post.
It was a brief respite for the home side with Ireland cracking in a shot in the 52nd minute that was deflected to safety.
Vincent Kompany then sent Bellamy scampering clear down the left but his delivery was blocked.
Copenhagen hauled themselves back into the game in the 56th minute by scoring the equaliser.
Almeida was the first to react when Thomas Kristensen delivered the corner and sent a header beyond goalkeeper Shay Given.
However City regained the lead in the 61st minute with another goal out of nothing.
A cross from Wright-Phillips went through the legs of Atiba Hutchinson and direct to Ireland.
Such is the midfielder's confidence he was not going to waste the chance and he rattled a shot into the corner of the net past a stranded Christiansen.
Substitute Jesper Gronkjaer almost pulled Copenhagen level for a second time in the 81st minute but Dunne came to the rescue and cleared off the line.
City then launched a swift counter-attack and Robinho should have extended their lead but showed a distinct lack of confidence to deliver a shot into the goalkeeper's body from a good position.
Copenhagen equalised again when substitutes Vingaard and Dame N'Doye - both on their debuts - linked up in stoppage time for the former to head home.