Hmm, this line is definitely not good:
"SQL Error: MySQL server has gone away"
That basically means your mysql server has died or stopped responding for that query. Is this your own server or are you on a hosted server?
It's our own server, and it had not actually gone away. It is used for a variety of other functions and none experienced any issues. It looks like the query is about 1,049,310 characters long. I'd think it's most likely a case that it has stopped responding.
Tim