-1
SELECT * FROM
(
SELECT messages.from AS `from`, messages.creation AS `creation`, account_images.profile AS `profile`, bio.user_full_name AS `user_full_name`
FROM messages
INNER JOIN account_images ON account_images.uuid=messages.from
INNER JOIN bio ON bio.uuid=messages.from
WHERE messages.to='{$user}'
ORDER BY `creation` DESC
)
GROUP BY `from`
爲什麼這個查詢不起作用?嵌套select語句有什麼問題嗎?請幫助我如何解決這個問題...MySQL查詢不能使用嵌套選擇
不,它的工作沒有嵌套選擇語句..我希望消息的最後結果,爲什麼我可以試試這個。 – user3222855