Prison official gets 22 years for corruption