FROM selfies and hashtags to Game Of Thrones references, comedian Jack Whitehall is keen to keep things up-to-the-minute on his school-based sitcom Bad Education.

But a cabinet reshuffle this summer, which saw controversial education secretary Michael Gove ousted from his role, gave Whitehall and his co-writer Freddy Syborn a script headache.

"I'll tell you what's annoying," the star says with a sigh, the day after Gove's move to chief whip was announced.

"Me and Freddy wrote a load of stuff - we were like, 'This series, especially because of what's been happening for the last year, we're going to try and do some nice stuff that kind of has a pop at Michael Gove'. So there are all these Gove gags, and now they move him.

"Just keep him there for six months more until the show goes out. Then, by all means get rid of him, and it will look like maybe we've played a part! So selfish!"

We're on the set of the hit comedy, where a framed photograph of Gove hangs in the headmaster's office and posters of 'Hot Babes Through The Ages' (ranging from Cleopatra to Pamela Anderson) and 'Role Models' (Liam Gallagher and Amy Winehouse) adorn the walls.

The light-hearted mood is tinged with some sadness, however, as Whitehall admits series three will most likely be the final instalment.

"It ends in a moment of it feeling like it's the last one. And when we set out to write it, it was meant to be the last one," the 26-year-old admits. "It's so enjoyable to do that you suddenly think, 'Oh God, maybe it would be nice to come back and do more'. But I think this will probably be the last series."

Bad Education's state school set-up is somewhat different to London-born Whitehall's own school days, which included a stint at the Duchess of Cambridge's alma mater, Marlborough College in Wiltshire.

But the well-spoken funny man - who also plays posh JP in Channel 4's university sitcom Fresh Meat - was able to draw inspiration from his former teachers when it came to playing "man child" Alfie.

"There were a few tragic ones," he says with a laugh, looking not unlike a student in a checked shirt and trainers today.

"I've been back to my school a few times and you see those teachers that you thought were quite cool when you were there because they were all being like mates, and they're tragic now that you're slightly older.

"There's no-one specifically that he's been based on," Whitehall hastens to add. "Legally."

After three series working with his young cast, he confesses that watching the final scenes back left him feeling emotional.

"Obviously I didn't cry, because I'm a bloke, and blokes don't cry," he says, straight-faced.

"No, I cry all the time. So I was welling up a bit. But I'm quite highly-strung emotionally; at the end of a series of A League Of Their Own (the Sky1 sports show on which he makes regular appearances) I cry, because I know I won't see (co-star) Jamie Redknapp's beautiful face for another eight months."

Looking at Whitehall's CV - sell-out tours, high profile fans (sporting stars Mo Farah and Sir Chris Hoy are both said to enjoy Bad Education) and more than 2.5 million Twitter followers - it's hard to believe he has only been on the planet, let alone the comedy circuit, for a quarter of a century.

The son of theatrical agent Michael, who stars alongside him in the BBC Three talkshow Backchat, and actress Hilary, Whitehall studied history of art at the University of Manchester before deciding to pack it in for a career in comedy.

"Dad said, 'Don't be an actor, because you'll just be out of work', which was nice and encouraging. And I've defied him. I think he wanted me to be an artist."

While performing stand-up around the country, Whitehall landed a presenting gig on Big Brother's Big Mouth aged just 19, and went on to appear on panel shows including Mock The Week and Have I Got News For You.

His acting debut was in Fresh Meat (where he met his girlfriend, actress Gemma Chan), followed by Bad Education, which broke BBC Three's record for the highest-rated first episode of a comedy.

The new series sees Alfie living with his colleague and girlfriend Miss Gulliver (Him And Her's Sarah Solemani) as his dad Martin (played by Harry Enfield, one of Whitehall's comedy heroes) is appointed deputy head.

"I think by the end, Alfie's a more mature presence than he was at the beginning of the series," Whitehall notes.

"But any step forward is a tentative one. He's still a bit of a feckless idiot. He thinks he's a grown up, but he's not really."

Has Whitehall grown up himself since series one?

"Noooo. I probably haven't matured. The kids have, sort of. They're certainly taller, but in terms of their characters, they're still pretty immature."

l Bad Education returns to BBC Three tomorrow at 10pm.