我在 forum_reply 和 forum_post 下面有下表。我怎样才能得到最新的帖子或回复,这是匹配forum_category_id的最新的,比如1。我需要检索日期,作者和forum_(帖子或回复)_id,forum_category_id
forum_post_id int(11) No Primary NULL auto_increment
forum_category_id int(11) No None NULL
forum_post_title varchar(255) No None NULL
forum_post_description mediumtext No None NULL
customer_id int(11) No None 0
forum_post_author varchar(64) No None NULL
forum_post_email varchar(128) No None NULL
is_lock tinyint(1) No None 0
is_stick tinyint(1) No None 0
is_notify tinyint(1) No None 0
status tinyint(1) No None 0
view int(8) No None 0
post_added datetime No None 0000-00-00 00:00:00
post_rate int(8) No None 0
ip varchar(32) No None NULL
post_icon varchar(128) No None default.png
和
forum_reply_id int(11) No Primary NULL auto_increment
forum_post_id int(11) No None NULL
forum_category_id int(11) No None NULL
forum_reply_description mediumtext No None NULL
customer_id int(11) No None 0
forum_reply_author varchar(255) No None NULL
forum_reply_email varchar(128) No None NULL
is_notify tinyint(1) No None 0
status tinyint(1) No None 0
reply_added datetime No None 0000-00-00 00:00:00
reply_rate int(8) No None 0
ip varchar(32) No None NULL
reply_icon varchar(128) No None default.png