标签: mysql distinct
DISTINCT不会从内部联接中删除重复项。有人知道为什么吗?
SELECT DISTINCT * FROM lastposts INNER JOIN users ON lastposts.user_id = users.id INNER JOIN friends ON lastposts.user_id = friends.user_id ORDER BY date DESC