I see that occasionally. Once I was trying to post a link to a pic and it come up every time. My theory is that the MySQL DB has some rudimentary injection attack mitigation and the URL had something that tripped the regex causing the DB to dump the connection and it timed out back to the PHP. Nobody else had the problem.
Each login and page load takes a dedication DB connection out of the MySQL connection pool.