title: How to avoid single quotes in sequelize query with replacements?
body: <p>I want to do a raw query using Sequelize and use replacements to avoid sql injection:  </p>
  
  <pre><code>var sequelize = require('sequelize');
  sequelize.query("SELECT * FROM table where name =:name ORDER BY :age:direction",
  {replacements:{name:"test", age:"age", direction:"desc"}, type: sequelize.QueryTypes.SELECT })  
  </code></pre>
  
  <p>This will be converted to following query</p>
  
  <pre><code>SELECT * 
  FROM table 
  WHERE name = 'test' 
  ORDER BY 'age' 'desc'  
  </code></pre>
  
  <p>Since the order by column is having single quotes and direction also with single quotes, postgres throws error  </p>
  
  <p>Can anyone suggest how do I solve this problem with replacements in place?</p>