in reply to Checking SQL Syntax

If you use the optional server-side statement handles feature in MySQL, it will give errors for bad SQL when you prepare.