A mother has been sentenced to over 17 years in prison after leaving her 4-year-old without food or water for months.