lib/adapters/mysql.js
function (args) {
            args = argsToArray(arguments);
            return !args.length ? this._super(arguments) : this.group.apply(this, args);
        }
function (args) {
            args = argsToArray(arguments);
            return !args.length ? this._super(arguments) : this.group.apply(this, args);
        }
function ( args ) { args = argsToArray ( arguments ) ; return ! args . length ? this . _super ( arguments ) : this . group . apply ( this , args ) ; }
Use GROUP BY instead of DISTINCT ON if arguments are provided.
Use GROUP BY instead of DISTINCT ON if arguments are provided .