title: Error: ER_PARSE_ERROR: You have an error in your SQL syntax;
body: <p>I'm trying to insert <code>values</code> using mysql in nodejs. I had written the following code and installed MySQL support via npm,But canot to INSERT INTO the table due to this problem.</p>
  
  <p>My code;</p>
  
  <pre><code>var mysql = require('mysql');
  
  var values=randomValueHex(8);
  
  var sql = "INSERT INTO `activationkeys`(`activationKey`, `productId`) 
  VALUES ( values ,'3')";
  con.query(sql, function (err, result) {
  if (err) throw err;
  console.log("1 record inserted");
  });
  </code></pre>
  
  <p>My Error on terminal:</p>
  
  <p>Error: ER_PARSE_ERROR: 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 ''3')'</p>
  
  <p>How can i solve this problem?</p>