Fake teacher sentenced to prison