From TNG S02E04. Genuinely annoys me that they couldn’t think of a better joke.

I actually liked that game
https://www.youtube.com/watch?v=zb6HXDxwPJM&t=0
crazy that it was basically a pizza ad.
Six years later, Data gets the joke.
After Data got the emotion chip, he had to take a few days off because his spontaneous laughter at jokes from years ago was becoming disruptive on the bridge
One of my favorite scenes in Generations is when Geordi realizes the horror of having a walking computer that remembers every joke he’s ever heard.
Didn’t realize Whoopi was a pizza thief…

The Noid is not a thief, you may be thinking of The Hamburglar.The Noid makes your delicious pizza late, cold and soggy!
Excellent noid depiction
It is by DevinBudro on deviant art!
Ahhh, you’re right. Been so long since I’d thought about it I’d forgotten.
The original one they intended is worse. So much worse.
SFDebris read it out in his review, but unfortunately there’s no link right now thanks to another exodus from dailymotion. And i cant find the transcript on the wiki.
That day, Data learned to avoid the noid.