It may have just been a temporary issue communicating with the database. Are you able to reproduce the problem consistantly now?
All of the pages use the same database connection file, so if it connects on one page you wouldn't expect this error in the middle of everything else working.
I'd refresh the page or go to another page and come back and see if the error still comes up.