Austin C. Ferrell of Bethalto was sentenced to 20 years for stabbing his grandmother and a juvenile in February.