Having previously used Microsoft's SQL Management Studio, I often used the query syntax check feature, pretty handy especially in a production environment.
Any help or link to a related would be much appreciated.
Currently phpMyAdmin give some error icons (red crosses) when you type invalid queries.
There are many tools available online, but below are the two which I used most of the times