Match ends, York City 2, Luton Town 3.
Olly Lee's stoppage-time winner earned Luton victory at struggling York City.
After a goalless first half Cameron McGeehan headed the Hatters in front, but Bradley Fewster levelled as he rounded Luton goalkeeper Mark Tyler.
Jack Marriott restored Luton's lead when he backheeled Stephen O'Donnell's pass into the net, but once again York responded through Fewster.
But Lee settled matters with a 20-yard strike after a fine solo run in the final moments of the match.
York are now two points from safety at the bottom of League Two, while Luton consolidated 13th place.
York City manager Jackie McNamara told BBC Radio York:
"Three individual mistakes have cost us three points. That's the disappointing thing because it's all preventable.
"To lose a goal like that to lose a game is very frustrating.
"It's points wasted where we should be getting out of trouble and we only have ourselves to blame.
"We've got nothing to show for all our hard work."
Luton Town manager Nathan Jones told BBC Three Counties Radio:
"We have slight mixed emotions. We could have made it at lot easier for ourselves. We'll be pleased with the three goals we scored because they were two things we've worked on, and a bit of individual quality.
"We have to be better, we have to be better defensively to cut out those mistakes, to cut errors, to be a bit more secure with what we do so that when we do take leads we come through periods where the opposition has spells.
"It's about getting a balance to our squad. We've got a lot of good footballers, but we need more. We need different to what we have."
Line-ups
York
Formation 4-4-2
- 24Ingham
- 27Hendrie
- 16Winfield
- 31Boyle
- 15Cameron
- 37GalbraithSubstituted forThompsonat 80'minutes
- 10Penn
- 8Summerfield
- 3IlesanmiSubstituted forMcEvoyat 64'minutes
- 9Oliver
- 12RiordanSubstituted forFewsterat 45'minutes
Substitutes
- 1Flinders
- 4Berrett
- 11Carson
- 19Hyde
- 22Thompson
- 32Fewster
- 33McEvoy
Luton
Formation 4-4-2
- 1Tyler
- 2O'Donnell
- 44SheehanSubstituted forOkuonghaeat 87'minutes
- 6Cuthbert
- 40Howells
- 11GreenBooked at 86mins
- 7LawlessSubstituted forSmithat 60'minutes
- 8McGeehanBooked at 27mins
- 19Lee
- 45PigottSubstituted forMackail-Smithat 61'minutesBooked at 81mins
- 14Marriott
Substitutes
- 4Smith
- 9Benson
- 15McCourt
- 16Justham
- 17Ruddock
- 18Okuonghae
- 22Mackail-Smith
- Referee:
- Geoff Eltringham
- Attendance:
- 3,628
Match Stats
- Possession
- Home51%
- Away49%
- Shots
- Home10
- Away9
- Shots on Target
- Home5
- Away3
- Corners
- Home2
- Away5
- Fouls
- Home10
- Away15
Live Text
Post update
Full Time
Second Half ends, York City 2, Luton Town 3.
Post update
Foul by Vadaine Oliver (York City).
Post update
Olly Lee (Luton Town) wins a free kick in the attacking half.
Post update
Corner, York City. Conceded by Mark Tyler.
Goal!
Goal! York City 2, Luton Town 3. Olly Lee (Luton Town) left footed shot from outside the box to the bottom right corner.
Post update
Corner, Luton Town. Conceded by Dave Winfield.
Post update
Attempt blocked. Craig Mackail-Smith (Luton Town) right footed shot from the centre of the box is blocked.
Post update
Corner, Luton Town. Conceded by Kyle Cameron.
Post update
Hand ball by Reece Thompson (York City).
Post update
Kyle Cameron (York City) wins a free kick on the right wing.
Post update
Foul by Danny Green (Luton Town).
Substitution
Substitution, Luton Town. Magnus Okuonghae replaces Alan Sheehan.
Post update
Foul by Dave Winfield (York City).
Post update
Scott Cuthbert (Luton Town) wins a free kick in the attacking half.
Booking
Danny Green (Luton Town) is shown the yellow card for a bad foul.
Post update
Vadaine Oliver (York City) wins a free kick on the left wing.
Post update
Foul by Danny Green (Luton Town).
Post update
Attempt missed. Stephen O'Donnell (Luton Town) header from the centre of the box is just a bit too high.
Post update
Attempt missed. Danny Green (Luton Town) right footed shot from outside the box is close, but misses to the left.