The singer, who has supported the Rams since he was four, was being filmed at Pride Park for a new film being made about the boy-band.
The film is being directed by Morgan Spurlock, who is the documentary maker behind Supersize Me, where he ate nothing but fast food for 30 days to see what effect it had on his health.
Niall had a kick-about on the pitch with some of his friends before the game kicked off, but no other members of the group were there.
More top news
Police have released pictures of a crash scene after a 15 year old was killed in a hit and run.
Taking money from the rich to give to the poor is a debate as old as Nottingham's mythic son, so why are people still so divided on welfare?
West Midlands weather: Wet and windy tonight