Preston North End 1-2 Bradford City
Preston suffered a first home league defeat in 2014 after Mark Yeates' late goal sealed victory for Bradford.
City took a first-half lead through Rory McArdle's deflected header.
Joe Garner saw a header cleared off the line with Chris Humphrey's follow up saved by Jordan Pickford while Callum Robinson also went close for Preston.
Garner equalised in the 85th minute after turning in from close range but Yeates won it for Bradford 60 seconds later with a fine curling effort.
Preston's defeat sees them slip to third in the League One table after Swindon climbed above them into second after ending Bristol City's unbeaten league start to the season.
It was the first time Preston have been beaten at home since 5 February when they lost to Nottingham Forest in the FA Cup and was their first league loss at Deepdale since 21 December 2013.