Fixed a sequelized query.