in reply to Checking SQL Syntax

MySQL has a EXPLAIN command that might be helpful.

I wonder what's your motivation for checking the syntax, what's wrong with just running the query and handle errors, if any?

--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]