A 52-year-old man has been jailed for two years for having sex with a 13-year-old girl.

Glenard Beaumont met the girl, who was with two prostitutes, when he went to Lumb Lane, Bradford, to buy crack cocaine, Leeds Crown Court heard yesterday.

They went to his flat in Church Street, Manningham, where he had consensual sex with her and committed another sex act.

Beaumont pleaded guilty last month to two offences of sex with a child. His not guilty pleas to rape, assault by penetration and false imprisonment were accepted.

Prosecutor Richard Mansell said the girl, who was now 14, was running away from her home in Bradford to stay with a prostitute friend. Social Services and Barnardo's were looking for her to return her to her home.

On August 16 she eluded the police and went out on to the street at 10.30pm. Beaumont met her and she asked if she could stay at his flat.

She said she smoked cannabis at the flat and at 10am the next day left through a window and told a passer-by Beaumont had tried to have sex with her. She told a Barnardo's representative he had "done all sorts of things to her" in the night.

Beaumont told the police he thought she was 17 or 18. He admitted they had sex and said she then told him she was 13 and a virgin.

Paul Fleming said in mitigation Beaumont was not a predatory paedophile. He said his client had made an error of judgement after consuming drugs and alcohol.

Mr Fleming said Beaumont's main problem was substance misuse and he was desperate to change.

Judge Scott Wolstenholme told Beaumont the probation service did not consider him a risk to children.

He lived in an area frequented by prostitutes and encountered the girl by chance. Beaumont will be on the sex offenders register for ten years.