She told her year 7 pupils that ‘you should put God before the LGBTQ ideology’