You have an error in your SQL syntax;
Take a deep breath, this error is infurating and why MySQL sucks. You have a lot of work work to do to figure out what you did wrong:
If you get this error it means the SQL parser encountered an error because of one of the following reasons:
- A misplaced, missing, or unnecessary symbol like
!@#$%^&*()-_=+[]{}\|;:'",.<>/?
.
- A misplaced, missing or unnecessary keyword like
select
, into
, or any of the thousands of others.
- You have unicode characters in your query.
- Too little or too much whitespace between keywords.
- Unmatched single quotes, double quotes, parenthesis or braces.
Break the SQL down into smaller and smaller pieces until you are left with the minimum possible statement that fails.
The syntax error will leap out at you, you will slap your forehead, and be one step closer to uninstalling the MySQL badware and getting postgreSQL instead which does not subject the user to such infuriating general errors.