title: ER_PARSE_ERROR node.js and mysql issue (INSERT INTO)
body: <p>I want to do a simple insert with Node.js while I am using socket.io with node.js and MySQL. Don't know why, but I am geting this error</p>
  <blockquote>
  <p>You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''markos'' at line 1</p>
  </blockquote>
  <p>My code:<br />
  When I try this, I get the above error.</p>
  <pre><code>io.on(&quot;connection&quot;, function(socket){
  console.log(&quot;a user is connected &quot; + socket.id );
  
  
      socket.on(&quot;question&quot;, function (question){
  
          let sql = &quot;INSERT INTO nodeJs (name) VALUES ?&quot;;
  
          con.query(sql, question, function (err) {
              if (err) throw err;
              console.log(&quot;1 record inserted&quot;);
          });
  
  
      });
  
    });
  });
  </code></pre>
  <p>if I try this simple code, everything works fine:</p>
  <pre><code>io.on(&quot;connection&quot;, function(socket){
  console.log(&quot;a user is connected &quot; + socket.id );
  
  
      socket.on(&quot;question&quot;, function (question){
  
          let sql = &quot;INSERT INTO nodeJs (name) VALUES ('John')&quot;;
  
          con.query(sql, function (err) {
              if (err) throw err;
              console.log(&quot;1 record inserted&quot;);
          });
  
      });
  
   });
  });
  </code></pre>
  <p>The question parameter always has a string.</p>