我的论坛有两个表来存储主题(posts 和 forums_archive_posts)
$this->DB->build( array(
'select' => "HOUR( FROM_UNIXTIME( post_date ) ) as hour, COUNT(*) AS postCount",
'from' => 'posts',
'where' => "new_topic=0 AND author_id=" . $member['member_id'],
'group' => 'HOUR( FROM_UNIXTIME( post_date ) )',
) );
此查询仅适用于第一个表(帖子),我需要一个也适用于“forum_archive_posts”的查询
表结构(forum_archive_posts=posts):
archive_author_id = author_id
archive_content_date = post_date