KANSAS CITY, Mo. (AP) – A Kansas City-area priest whose child pornography case led to a criminal conviction against a Roman Catholic bishop was sentenced Thursday to 50 years in federal prison.

Prosecutors had asked that the Rev. Shawn Ratigan be sentenced to 10 years in prison for each of five young victims after he pleaded guilty in August 2012 to five counts of producing and trying to produce child porn.

Ratigan, 47, was charged in May 2011 after police received a flash drive from his computer containing hundreds of images of children, most of them clothed, with the focus on their crotch areas.

Bishop Robert Finn, head of the Catholic Diocese of Kansas City-St. Joseph, was convicted last September of one misdemeanor count of failing to report suspected child abuse to the state.

Prosecutors said the diocese learned about the photos on Ratigan’s computer on Dec. 16, 2010, after a technician found them on the priest’s laptop and alert! ed church officials. A day after the images were found, Ratigan missed Sunday Mass and was found unconscious in his garage with his motorcycle running and a suicide note nearby.

Instead of reporting Ratigan or the photos to law enforcement, as required by state law, Finn waited until the priest was released from the hospital and sent him out of state for psychiatric counseling.

When Ratigan returned to Missouri, Finn ordered him to stay at the Sisters of St. Francis of the Holy Eucharist, a facility in Independence, where he could say Mass for the sisters.

The diocese turned the photos over to police in May 2011 after receiving reports that Ratigan had violated Finn’s order to avoid contact with children.