我正在尝试从数据库中获取最后一条消息并按用户分组
http://i.stack.imgur.com/Wjzin4.png
$query = $this->query("SELECT * FROM `messages`
WHERE `receiver` = '763'
GROUP BY `sender`
ORDER BY `id` DESC
LIMIT 0, 50");
输出:
http://i.stack.imgur.com/GLhyan.png
所以有问题..应该是e而不是d和c而不是a