The MySQL server error “Warning – Error while sending QUERY packet” has two main causes and solutions. Please check this FAQ for the solution.

Previous FAQ: How do I fix the Mysql error “Connection refused”?