The court heard that Khan used the innocent detective’s name, although she had never met him, because he was one of the officers in an earlier drugs investigation involving her second ex-husband, in 2011.

Mr Toor said Khan had previously encountered domestic abuse, and suffered from depression as well as a ‘complex post-traumatic stress disorder’.

She had a drink problem and consumed ‘at least one bottle of vodka’ before making the false rape claim, the court was told.

‘She was plainly unwell and made a spurious allegation against a man she didn’t know, which she says was deplorable and she did retract it,’ said Mr Toor.