From c04aea8d9d797c0930bedc5038b466dc661774da Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 12 Oct 2014 02:39:00 -0400 Subject: [PATCH] Fix #540 --- models/org.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/org.go b/models/org.go index 08d276bf86..3232bf2ac1 100644 --- a/models/org.go +++ b/models/org.go @@ -846,7 +846,7 @@ func IsTeamMember(orgId, teamId, uid int64) bool { // GetTeamMembers returns all members in given team of organization. func GetTeamMembers(orgId, teamId int64) ([]*User, error) { us := make([]*User, 0, 10) - err := x.Sql("SELECT * FROM user JOIN team_user ON team_user.team_id = ? AND team_user.uid = user.id", teamId).Find(&us) + err := x.Sql("SELECT * FROM `user` JOIN `team_user` ON `team_user`.`team_id` = ? AND `team_user`.`uid` = `user`.`id`", teamId).Find(&us) return us, err }