It would be inappropriate for this person to act as a judge in this case, because of his/her prior involvement in it, and he/she should "recuse" (remove) him/herself from hearing the case.  (Some other judge should hear it.)If the judge does not remove him/herself, the defendant, if convicted, may be able to appeal on grounds that the judge had a conflict of interest.