select * from topic,reply where topic.id = reply.tid and author = 'rainman' and order by topic.signtime,reply.replytim desc