Getafe hosted Huesca on 42 points and in fourth place, and conceded before half-time with Enric Gallego's goal in the 35th.
The comeback was Mata's work: he equalised in the 50th and scored from the penalty spot in the 77th for the definitive 2-1.
Bordalás brought on Duro, Jorge Molina and Olivera.
Prieto Iglesias was the referee. The victory leaves Getafe on 45 points and fourth.
The afternoon also brought Chichizola's Primera debut for the club and Arambarri's 50 matches in the top flight.


