A fake doctor, exposed through an undercover investigation, learned his fate from a judge after he plead guilty