code: function replaceFieldNames(sql, identifiers, model) {
  	const {queryInterface} = model.sequelize;
  	_.forIn(identifiers, (fieldName, identifier) => {
  		// Get table field name for model field
  		fieldName = (model.rawAttributes || model.attributes)[fieldName].field;
  
  		// Replace identifiers
  		sql = sql.replace(
  			new RegExp(`\\*${identifier}(?![a-zA-Z0-9_])`, 'g'),
  			queryInterface.quoteIdentifier(fieldName)
  		);
  	});
  	return sql;
  }
docs: Replace field names in SQL marked with * with the identifier text quoted. e.g. SELECT *field FROM `Tasks` with identifiers {field: 'name'} -> SELECT `name` FROM `Tasks`