A man has pleaded guilty to production of Class B drugs after a cannabis farm in a disused Northumberland social club was dismantled.