From 68e374067b527ba8b670d53e5879112cf7f67872 Mon Sep 17 00:00:00 2001 From: David M Date: Tue, 16 May 2006 22:14:59 +0000 Subject: Firebird! git-svn-id: file:///svn/phpbb/trunk@5918 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/viewtopic.php') diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 98f5603a6e..c8c325f970 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -239,7 +239,7 @@ if (!($topic_data = $db->sql_fetchrow($result))) // This is for determining where we are (page) if ($post_id) { - $sql = "SELECT count(*) AS prev_posts + $sql = "SELECT COUNT(*) AS prev_posts FROM " . POSTS_TABLE . " p WHERE p.post_approved = 1 AND p.topic_id = {$topic_data['topic_id']} -- cgit v1.2.1