You put quotation marks in field names. This forces MySQL to treat them as strings, not field names, and you cannot insert them into strings.
INSERT INTO articles (word, group, selfnote) VALUES (....);
- The correct syntax. The only citation type allowed for field names is to use reverse steps to exit reserved text fields, for example.
INSERT INTO articles (table, int, varchar) ...
will fail due to the use of 3 reserved words, but adding reverse steps
INSERT INTO articles (`table`, `int`, `varchar`) ...
makes them acceptable as field names.
source share