select ft.subject,fr.subject
from forums_topics ft,forums_replies fr
where ft.id=fr.topicid
order by ft.id,fr.id
from forums_topics ft,forums_replies fr
where ft.id=fr.topicid
order by ft.id,fr.id
(
select id,subject,message,0 seq from forums_topics
union
select topicid,subject,message,1 from forums_replies
)
order by id,seq