Stephen O'Flynn's injury time penalty snatched Ballinamallard their first ever victory at the Ballymena Showgrounds - and what a vital one it could turn out to be.
With both Carrick and Warrenpoint winning, that result means that Ballinamallard remain in tenth, 2 points ahead of Carrick and 1 ahead of Warrenpoint. Indeed only 4 points separate the bottom four sides meaning that the relegation battle will go down to the final day.
The Mallards were the better team in the first half with Campbell and Lafferty both going close whilst Ballymena rallied towards to the end of the half, however it was 0-0 at the break.
On 47 minutes Tony Kane struck an opener for Ballymena with a well placed free kick, whilst Leeroy Miller hit the crossbar and Gary Thompson fired over from close range.
With Ballymena firmly on top of proceedings, the Mallards got a lifeline on 66 minutes when Emmet Friars headed in his first of the season, from Adam Lecky's cross.
Johnny Lafferty looked to have added a second when his deft touch beat goalkeeper Alan Blayney, but Johnny Taylor got back in time to clear off the line.
With the game coming to a close it looked like both sides were going to have to settle for a point but there was to be drama in injury time when David Cushley handled on the line with Lee Tavinder showing the midfielder a red card and pointed to the spot.
Stephen O'Flynn stepped up and showed no pressure, to score an essential winner.
Elsewhere the Seconds won 1-0 with Kuba Klobusek getting his 14th of the season, whilst the Thirds secured the NIFL Youth League (Section B) title with a 12-2 home win.