COLUMBIA, S.C. (AP/WVOC) - A judge has ruled that South Carolina's prison system is failing to care for its mentally ill inmates.

Circuit Judge Michael Baxley decreed that systemic changes are needed at the Department of Corrections to fix the problem.

Nearly two years ago, Baxley presided over arguments raised by a non-profit group called Protection and Advocacy for People with Disabilities.

The group sued the Corrections Department in 2005 on behalf of several mentally ill inmates, one of whom suffers from paranoid schizophrenia and said he was kept for years in an isolation cell.

Corrections officials disputed the claims at trial, denying that any inmates' constitutional rights were violated.

And the Department of Corrections say it will appeal the court ruling.