From 21cc1fda8562dcb20f0d850da232d69281d6df51 Mon Sep 17 00:00:00 2001
From: brunoais <brunoaiss@gmail.com>
Date: Sun, 1 Mar 2015 20:57:06 +0000
Subject: [PATCH] [ticket/13664] Added alias to table to make modding easier.

PHPBB3-13664
---
 phpBB/includes/mcp/mcp_front.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php
index 41953a71e6..4278511c01 100644
--- a/phpBB/includes/mcp/mcp_front.php
+++ b/phpBB/includes/mcp/mcp_front.php
@@ -44,10 +44,10 @@ function mcp_front_view($id, $mode, $action)
 			$sql_ary = array(
 				'SELECT' => 'COUNT(post_id) AS total',
 				'FROM' => array(
-						POSTS_TABLE => '',
+						POSTS_TABLE => 'p',
 					),
-				'WHERE' => $db->sql_in_set('forum_id', $forum_list) . '
-					AND ' . $db->sql_in_set('post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE))
+				'WHERE' => $db->sql_in_set('p.forum_id', $forum_list) . '
+					AND ' . $db->sql_in_set('p.post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE))
 			);
 
 			/**