Martin, of Wood Street, Castleford, pleaded guilty to two offences of attempted aggravated burglary, one of aggravated burglary, four burglaries, two attempted burglaries, six offences of fraud, theft, affray, possession of a knife and sending a malicious communication.

Martin asked for eight further burglaries and three thefts to be taken into consideration by the court.

Robin Frieze, mitigating, said Martin had become addicted to crack cocaine after being introduced to the drug while in custody.

He said: “All these offences were committed when he was in the grip of that drug.”

“He is in ordinary circumstances, when not taking drugs, a polite, respectable and pleasant young man.

“He does not complain or blame anyone else.”

Sentencing Martin, judge Tom Bayliss, QC, said: “Over a short period of time you were involved in some very serious offending indeed.”