I use to work with this developer that was a format Nazi! I could have created the most efficient piece of SQL and he wouldn't accept it unless it was formatted correctly. I stumbled on this website and I've been using it ever since. There's a drop down for MYSQL. You may also need to adjust the drop downs on the right for the correct case of the column names.