A VIOLENT sex offender walked out of prison today - only to be made subject to a temporary anti-social behaviour order.
Huddersfield magistrates issued the order yesterday on Gary Garner, 39, at a landmark hearing.
It was thought to be one of the first hearings where the subject was in prison.
The order takes effect today, when Garner leaves Armley Prison in Leeds.
He was jailed for three months on June 30 for possessing an offensive weapon in Byram Street, Huddersfield, at 4am on March 12.
It followed an incident with a prostitute in Fartown.
Garner - whose last address was in Batley - argued with her over money, before going home to collect a knife and a hammer. He got a taxi back to look for her.
Solicitor Geoff Bell, who applied for yesterday's interim order on behalf of West Yorkshire Police and Kirklees Council, said: "He was looking for this prostitute with the intention of doing her harm."
The taxi driver was suspicious and called police, who arrived in time to stop the attack.
Mr Bell told the court that Garner had a record of assault and six sex offences. He is also on the sex offenders' register.
Mr Bell said: "He has a considerably horrific record. He has often walked round with a hammer and telescope. It is suggested he preys on vulnerable women and has a hatred of women."
The order prevents Garner from:
* Behaving in a way likely to cause harassment, alarm or distress or inciting others to do so.
* Behaving in a threatening, abusive or insulting way or inciting others to do so.
* Using or threatening violence.
* Being in possession of an offensive weapon in a public place.
* Visiting Hillhouse Lane in Huddersfield and Fartown.
He cannot do any of the first four things within England and Wales.
Mr Bell added: "There are great concerns that when he gets out this pattern of behaviour - which has been going on 20 years -will continue."
Garner, who originates from Birmingham, was not represented in court when the interim order was granted.