sql: 'SELECT `gu`., `a`.`displayname`, `a`.`email`, `g`.`name` as `groupName`, `a2`.`displayname` as `invitor` FROM `group_user` `gu` JOIN `accounts` `a` ON `a`.`username` = `gu`.`username` JOIN `group` `g` ON `g`.`id` = `gu`.`groupId` JOIN `accounts` `a2` ON `a2`.`username` = `g`.`username` WHERE `gu`.`groupId` = 20 AND `gu`.`status` IN (0, 1)' }
workaround
.select('gu.*', false')
.select('a.displayname, a.email, g.name as groupName, a2.displayname as invitor')
or
.select('gu.*,a.displayname, a.email, g.name as groupName, a2.displayname as invitor', false)
driver: mysql
expected
actual
workaround
or