Rukhshanda Hussain, prosecuting, told Leeds Crown Court that the messaging began in November last year and lasted for several months.

Leeds Crown Court

The fake profile had been set up by an adult from Team Impact, but Pearson knew the age of the ‘boy’ from the beginning.

Miss Hussain said he repeatedly turned the conversation sexual, asking the boy about his school, how he felt about other boys in his school and for a photo of him in his school uniform.

He said he would show him gay porn and arranged to meet up, talking about oral sex and even penetrative sex.

Sajid Majeed, defending, said: “He has hidden an aspect of his life from his wife in terms of his sexuality and he has not dealt with it in the best way and perhaps that has resulted in this offending.”

Robert Pearson

He continued: “His wife and son want nothing to do with him.

“That relationship, I think, of 29 years is now over.

“He is now facing spending the rest of his life without the two people most important to him.”

He said that Pearson was suspended from his job until the outcome of the proceedings, but later resigned and no longer works for the council.

He also said: “There were considered to be a high risk of reprisals in the community.

Jailing Pearson for eight months, of which he will serve half before being eligible to be released, Judge Robin Mairs said: “You were exposed, not just to the justice system but to your family as well.”

He must also sign the sex offender register for 10 years and was made the subject of a Sexual Harm Prevention Order for 10 years.

The court heard that the maximum sentence for such an offence is one of two years’ imprisonment.

Do you want news alerts on Whatsapp?

The Examiner has launched a Whatsapp group to help make sure you don't miss a news break or big story.

If you'd like to receive alerts text NEWS to 07833 287309 . Then add the number to your contacts as 'Examiner'.