Treatment of pain in joints