https://blog.eldernode.com/mysql-queries-troubleshooting/
Answer To MySQL Queries Troubleshooting