A NOTORIOUS Worcester sex pest has been jailed for 18 months after breaking a court order just hours after it was made by a judge.

Mohammed Ilyas frightened two women by staring through their windows.

The same day, 30-year-old Ilyas had been given a sexual offences prevention order in a bid to stop him carrying on a long reign of terror against women in the city.

Judge Alistair McCreath concluded he posed a serious risk of harm to the public in the future.

The order forbade Ilyas from causing alarm or distress to any woman after incidents in the city’s library and swimming pool and the targeting of students at Worcester College of Technology.

At the same time as the order was made on October 15, Ilyas, of Cherwell Close, Tolladine, Worcester, was sentenced to six months’ jail for breaching a community order. But he was freed immediately from custody after spending time on remand.

He left Worcester Crown Court but by 8pm was staring through the window of a single mother in her kitchen, said Susan Cliff, prosecuting. The victim took a vase to bed to use as a weapon in case she was burgled in the night because “she was so unnerved by it”.

Ilyas also targeted one of her neighbours in the same way but fled after a man at the house came out.

Arrested the same night, he told police he had been waiting for a friend.

Ilyas, who grinned through most of the hearing, pleaded guilty to breaching the order.

Last month the court heard he exposed himself in the library to a middle-aged woman. He was caught peeping at women in a changing room at the baths and touched a woman’s bottom in a leisure centre jacuzzi.

Ilyas also got into a woman’s bedroom at night by climbing on to a balcony, stared at college students and performed a sex act in front of school pupils.

He was banned from sex therapy sessions because he began asking about the crimes of other defendants.

He also made sexual advances to a probation officer.

Charles Hamer, defending, pointed out that it was the first breach of his order. His conduct, though worrying, was not an offence.

But the judge said it brought distress, fear and upset. Although he would have liked to pass an extended sentence, the powers of the court were limited.

He said Ilyas had frequently breached other court orders and had been told "in the clearest terms" what to expect if did not conform to the termas of the SOPO.