Never mind. I found out it must be something in WordPress itself that causes this error and I found a workaround for it here:
Workaround for WordPress database error: [MySQL server has gone away] for different versions of Wordpress
I did what it said to do and now my blog is back! *whew*