A prison officer who kissed and sat on the lap of an inmate she was in a relationship with has been jailed for a year.