The comedian was on hand to present Mrs Brown's Boys with the statuette for best comedy, but not before a series of blunders left the star-studded crowd – and those at home – in hysterics.
Soon after arriving out on stage, the 89-year-old joked that The O2 arena was a "magnificent shed" before reading out the nominees and eventual winner.
However, as fellow nominee Orange Is The New Black appeared on the big screen, Sir Ken read out: "Mrs Brown’s Boys… Oh wrong one, Orange is the New Black… Is that right?"
Then, when the big moment finally came, the TV legend fumbled with the sealed envelope looking confused, before moving it around so the winner could be seen by all.
National TV Awards 2017: Ken Dodd made a couple of epic gaffes on ITV tonight
National TV Awards 2017: Ken Dodd flashed the winners name at the camera
Inside the National Television Awards 2017
Wed, January 25, 2017
All the winners from the 2017 NTA's
1 of 66
Mary Berry reacts to winning the Best TV Judge during the National Television Awards
Thank you Sir Ken Dodd… to be nominated twice in the same category is amazing!
Brendan O'Carroll and his hit BBC sitcom eventually won, and he later made reference to Sir Ken's blunder – which is likely to have all been for comedy effect.
The 61-year-old said: "Thank you so much, we're all here… thank you Sir Ken, to be nominated twice in the same category is amazing, we so appreciate it."
He continued: "Thank you so much to all of you who voted, it's really important that you vote, this is the most important award we get.
"It's very, very exciting and very humbling. Thanks to the BBC and everyone involved."
National TV Awards 2017: Ken Dodd had those at home in stitches
National TV Awards 2017: Ken Dodd poses on the red carpet
Many took to Twitter to comment on the Liverpudlian's appearance, with one user stating: "You have to love sir ken Dodd completely messed that up but so funny #NTAs."
Two others continued: "Ken Dodd obviously ruined the National Television Awards for the comedy value #NTAs," and: "Is Ken Dodd p****d!? #NTAS."
Another added: "Ken Dodd presenting an award at 89, what a ledge. If I'm still breathing at 89 it will be a miracle #comedygold #ticklingstick #NTAs."