我有一个主题表,我有一个带有评论的表。
话题
ID TOPIC
1 Guns
2 School
3 Politics
4 War
注释
DATE TOPIC TEXT
5/4/2013 School 'I love school.'
5/5/2013 War 'War sucks.'
5/6/2013 Politics 'I like politics... sometimes.'
5/7/2013 Guns 'I have a few guns. Do you?'
5/8/2013 War 'Stop fighting you guys.'
我需要的是一个 MYSQL 语句来获得这个结果(按照与该主题相关的最新评论的顺序):
TOPIC
War
Guns
Politics
School
这是按有关它们的最新评论排序的主题列表。