A couple were arrested at a house in Leeds after police discovered 24 cannabis plants growing in the cellar.
Leeds Crown Court heard police went to the home of Moniece Monique Wenham on May 14 this year as they wanted to speak to her partner Raphael James.
They gained entry to the property on Brownhill Avenue and found a carrier bag full of cannabis along with £430 in cash on a kitchen table. The property was searched and 22 cannabis plants were found in growing in a tent in the cellar.
The court heard Wenham lived at the property with her six-year-old daughter.
She pleaded guilty to permitting premises to be used for the production of cannabis.
James, 27, of St Martins Close, Potternewton, pleaded guilty to possessing cannabis with intent to supply and producing cannabis.
Narinder Rathour, mitigating, said James had been the victim of an horrific attack during which he had been stabbed and suffered a punctured lung. Mr Rathour said James began smoking cannabis in order to ease the pain of his injuries, had built up debts with dealers and grew the drugs in order to pay back the debt.
James was given a 16 month prison sentence, suspended for two years, and told to do 300 hours unpaid work. Wenham was given a four month prison sentence, suspended for two years, and ordered to do 100 hours unpaid work.