A married prison officer who was filmed having sex with an inmate was yesterday jailed for 15 months.