are you getting this error on the admin or public site?

What are you doing when the error appears, adding, editing product etc...