A RACIST man has been jailed for 17 months for sexually assaulting a paramedic and repeatedly assaulting police officers.

Cameron Mackay committed a spree of violent offences, including pulling a knife on a man who had seen him on 999 What's Your Emergency.

He had been featured on the Channel 4 show after sending vile messages to a teenage girl he picked at random on Facebook, making reference to her black boyfriend.

The 31-year-old was on a suspended sentence for that but breached it last year when he bit a PCSO who detained him for urinating on someone's front door in Devizes.

As an 'act of mercy' a judge put off passing sentence in September to give him a chance to sort himself out, after being told that incident was 'a blip'.

What the court didn't know at the time was he was being investigated for brandishing a knife and assaulting a man in an incident at a Trowbridge supermarket. And after being released on a deferred sentence Mackay carried on attacking emergency service workers.

Mackay, of Yeoman Way, Trowbridge, pleaded guilty to two sex assaults, three assaulting a police officer, common assault, having a bladed article and drunk and disorderly.

On December 7 he was visiting a friend in Swindon when he fell asleep on her sofa after consuming a large amount of cognac.

Ellen McAnaw, prosecuting, told Swindon Crown Court she tried to get him to leave as her children were not settling, but he refused.

Once she got him out he started hitting the window with a mop and a stone, breaking the glass, and got back into the house.

When police arrived he struggled with them, biting a female officer in the thigh.

He was again released on bail and on New Years Eve was in Bristol city centre when an ambulance was called as he appeared unwell, falling over, and drunk.

When the first paramedic shook his shoulders to rouse him he said 'Hello ladies: you've come to give me a massage', then stuck his tongue out and started laughing.

He then asked for a kiss and pawed at her breasts and tried to tickle her ankle, running his fingers up her lower leg.

Once they got him in the ambulance he made a comment about 'riding the love train,' before groping at her groin.

When the police arrived to arrest him for the continual abuse he through a punch at the female officer, striking her body armour.

The offending also put him in breach of a suspended sentence imposed for a malicious communication. He has a number of previous convictions including one for a racially aggravated public order offence.

Andrew Stone, defending, said his client had been through a number of issues and realised he faces a jail term.

The incident outside a shop took place because someone had wrongly been calling him a 'paedo' following his appearance on 999 What's Your Emergency, he said.

He told the court that his client was an alcoholic who had been warned by a doctor to not stop drinking immediately, but gradually.

Passing sentence Judge Jason Taylor QC said "I wanted to give him a chance: I had my doubts. It's not gone well."

As well as jailing him for 17 months he told him he must register as a sex offender for seven years.