为什么查询给我这个错误:#1054 - Unknown column 'a.group_id' in 'where clause'
?
SELECT a.group_id
FROM message_private a
INNER JOIN (SELECT group_id,profile_id
FROM message_group b
WHERE a.group_id = b.group_id AND b.profile_id = 's'
) as b ON b.group_id = a.group_id