RACY novel writer Leonora Rustamova has lost her fight to get back into the classroom.

The Huddersfield teacher – known as Miss Rusty – was dismissed because of a controversial internet story.

Now she has lost an appeal against that sacking.

She had insisted the novel was a way of holding the attention of difficult teenage pupils.

But governors at a Calderdale school disagreed and dismissed her from her £34,000 a year post.

Mrs Rustamova, of Salendine Nook was sacked by Calder High School in Mytholmroyd, near Hebden Bridge, after writing the “racy” novel featuring some of her students.

The teacher, 40, was at the school for 11 years and claimed it was an innovative way of getting her pupils interested in their work.

But school governors thought differently – especially when the novel appeared on internet sites and attracted national attention.

She took her case to an employment tribunal but last night heard the verdict had gone against her.

In a reserved judgement from the tribunal panel in Leeds, the teacher had her bid for reinstatement thrown out.

Mrs Rustamova was sacked for gross misconduct in 2009 after the book appeared on an internet self-publishing site.

It made sexual references and a comparison between two teenagers and “gorgeous Mr Gay UK finalists”.

Her sacking from the school prompted demonstrations by pupils and a campaign by parents to have her reinstated.

The book, which was peppered with expletives, named several teachers and features five Year 11 pupils – all real students and referred to as Miss Rusty’s favourites.

One pupil is referred to as fantasising and flirting with Mrs Rustamova.

The story – Stop! Don’t Read This! – originally appeared on a self-publishing website before it was removed. Giving evidence to the tribunal, she revealed she was sent a letter by the school informing her that she had been promoted to the role of social cohesion co-ordinator.

A day later she received a letter telling her she had been suspended.

She told the tribunal the idea for printing out the book came from the head teacher, Stephen Ball.

She left the book on his desk with a note reminding him of the “potential issues with the content of the book”. She said the head praised her and raised no objections

She told the hearing: “I was in deep shock for a couple of days. I was utterly astonished. I was not particularly rational for a couple of days.”

She was asked if the book was meant for mass circulation and considered a “Jeffrey Archer”.

“I would hope not,” she replied.

But Jean Bradbury, vice-chair of governors at the school, told the hearing in Leeds: “The book brought the school into disrepute, in large part because the book was available in the public arena and the fact the school was named.”