As it says in this documentation the error happens for several things: link
USE WORDS RESERVED
Each version of MySQL has its own list of reserved words. These are words that are used for specific purposes or perform specific functions within the MySQL engine. If you try to use one of these reserved words, you will receive the error.
LOST DATA
Sometimes there is a lack of data in the database. This can cause problems when this data is required for a query. For example, if you build a database that requires an ID number for each student, it is reasonable to assume that a query will be constructed to obtain a student record with that number
TYPOGRAPHICAL ERROR OF THE COMMANDS
One of the most common causes of error 1064 is when a SQL statement uses a poorly written command.
OBSOLETE COMMANDS
Some commands that were disused (programmed to be deleted but still allowed for a period of time) eventually become obsolete. This means that the command is no longer valid in the SQL statement.
This last one is probably yours since you say that in a past version it did not happen to you. In the link that I passed you there are possible solutions for each of the cases. Greetings.