MySQL has a concept of keywords, and reserved keywords.
You can use keywords as identifiers for tables, columns, etc., without quoting them.
mysql> CREATE TABLE if not exists TABLE1 (
-> id int PRIMARY KEY,
-> text TEXT);
Query OK, 0 rows affected (0.02 sec)
You can use reserved keywords as identifiers as well, but you have to quote them.
mysql> CREATE TABLE if not exists TABLE1 (
-> id int PRIMARY KEY,
-> order TEXT);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'order TEXT)'
Quote the reserved keyword and then you can do it:
mysql> CREATE TABLE if not exists TABLE1 (
-> id int PRIMARY KEY,
-> `order` TEXT);
Query OK, 0 rows affected (0.01 sec)
How do you know what's a keyword and what's a reserved keyword?
Use this reference documentation: https://dev.mysql.com/doc/refman/8.0/en/keywords.html