#1064 - You have an error in your SQL syntax

The error 1064 occurs due to Mysql version mismatch because different versions have different reserved words, which if used by a previous version causes the error to occur. The simplest and most effective solution for it is the following: when using phpMyadmin, select the "compatibility mode" & select the target database version from the drop down box. Taking this precaution, generally the things should start working for you.

Put a smile on someone's face today!