Has anyone figured out why this error occurs?

One moment categories list fine, you add a product and BAM! This error pops up.
I can see the products loading on the front page carousel but if you search for a product or click on categories this error pops up.