MYSQL sort unique table topics by latest post

silsAutommelm

New Member
I have 2 tables:Topics
  • topic_id
  • topic_subject
  • topic_date
  • topic_category
  • topic_by
  • topic_content
  • topic_views
Posts
  • post_id
  • post_content
  • post_date
  • post_topic
  • post_by
what i want is a list of every topic, ordered by the latest post in that topicso....\[code\]select (table.topics) some type of join, select (table.posts where post_topic = topic_id) order/group by table.posts.post_date\[/code\]i want to see each topic once and only have the latest post accociated with each.the topic columns should have no effect on the sort. just the fact that they are all there and sorted by the lats post.please help me my forum is sorted by latest topic created right now!
 
Back
Top