I'm trying to add a record to mySQL database, when I do so I get the following message:
sqlMessage: '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 \'release) values ( \'/ge-assets/images/bottoms-webinar.png\', \'Sign Up Now!\', \'2018\' at line 1',
When I try to add it exactly the same without the 'release' column everything works fine - I am able to append the entry. So I understand something is wrong with the 'release' title, however searching around it doesn't seem like a reserved keyword (I looked in w3schools, and around SO).
query = `insert into ${CURRENT_DB_TABLE} (image_path, button_text, release) values ( '${entry.image_path}', '${entry.button_text}', '${entry.release}')`;
return mysqlConnection.query(query).then((response)
console.log("appended entry :: ",entry.title);
I cannot add it without the column names (because one of my columns has to remain empty).