Prison guard has affair with inmate… and goes to jail