York City crashed to the bottom of League Two after defeat at fellow strugglers Yeovil.
It was the home side’s first win in 17 games.
The vital moment came on 40 minutes. Luke Summerfield was judged to have tripped Francois Zoko inside the box, and Scott Dolan converted the penalty.
The Minstermen are bottom, with just 16 points from 24 games.