New trial ordered for inmate on death row