title: getting mysql syntax error while using parameters in mysql query
body: <p>Getting sql syntax error in nodejs</p>
  <p>Am using this code :</p>
  <pre><code>async function getNotificationFsql(data) {
      var query = &quot;select * from notifications where id&gt;${data.start} and receiver=${data.recId} limit 10&quot;;
      var record = await db.sequelize.query(query ,
          function (err,results) {
              if (err) {
                  console.log('Error while getting data from MYSQL     :-   ' + err);
              } else {
                  console.log('Notifications data which we got from MYSQL     :-   ' + results);
              }
          }
      );
      // console.log(record);
      console.log('Notifications      :-   ' + record[0]);
      return record[0];
  };
  </code></pre>
  <p>And I got:</p>
  <blockquote>
  <p>code: 'ER_PARSE_ERROR',
  errno: 1064,
  sqlState: '42000',</p>
  </blockquote>
  <blockquote>
  <p>sqlMessage: &quot;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 '{data.start} and receiver=${data.recId} limit 10' at line 1&quot;,</p>
  </blockquote>
  <blockquote>
  <p>sql: 'select * from notifications where id&gt;${data.start} and receiver=${data.recId} limit 10',
  parameters: undefined
  },
  sql: 'select * from notifications where id&gt;${data.start} and receiver=${data.recId} limit 10',
  parameters: undefined</p>
  </blockquote>
  <p>What am I doing wrong?</p>