diff --git a/phpBB/posting.php b/phpBB/posting.php index d90ce4dba5..69c60212fb 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -141,7 +141,8 @@ function remove_common($percent, $word_id_list = array()) $rowset = $db->sql_fetchrowset($result); $sql = "SELECT COUNT(post_id) AS total_posts - FROM phpbb_posts"; + FROM " . POSTS_TABLE; + $result = $db->sql_query($sql); if( !$result ) {