如果来自我的查询并且不知道如何解决我的查询,我会收到重复列名的错误
SELECT distinct(courseid+senderid+recipientid) as diskey,
mess.id,
User.firstName as recipientName,
Course.name,
senderid,
recipientid,
courseid,
message,
mess.status,
mess.createdOn
FROM
(
SELECT *
from Message,User,Course
where Message.recipientid=User.id
and Message.courseid=Course.id
order by Message.createdOn DESC
) as mess,
User,
Course
WHERE senderid ='3'
OR recipientid='3'
GROUP BY diskey;
任何人都可以帮忙吗