sequelize/sequelize — pull request #1410 by ruifortes (2014-02-19 18:04:40+00:00)
Title: fix adding duplicate PK attributes in select query

If there's a subquery and options.attributes is defined and contains PK field duplicate would be added.