A former 16-year veteran of the Sacramento Police Department was sentenced to jail Thursday on drug- and weapons-related charges, the Sacramento County District Attorney’s Office said.

Isaac Richard Knutila pled no contest to felony possession of controlled substances with a firearm and felony possession of an assault weapon before he was sentenced to 150 days in jail and five years of probation, the DA’s office said.

In October 2016, investigators got a tip that Knutila was possibly involved in prostitution-related activity at a hotel in Sacramento. About three weeks later, investigators found Knutila at a hotel with heroin, methamphetamine, cocaine and marijuana while armed with a department-issued handgun. Officers later searched his home and found an illegal assault weapon.

“The men and women in law enforcement do a tremendous job in protecting and serving our community,” District Attorney Anne Marie Schubert said in a statement. “However, if a law enforcement officer or any citizen engages in criminal activity, they will be held accountable regardless of their profession or any other status they may have.”