aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 6476b98e9a..06ccc6d58e 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -272,8 +272,8 @@ function get_post_data($post_ids, $acl_list = false)
$rowset = array();
$sql = 'SELECT p.*, u.*, t.*, f.*
- FROM ' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u, ' . TOPICS_TABLE . ' t
- LEFT JOIN ' . FORUMS_TABLE . ' f ON f.forum_id = p.forum_id
+ FROM (' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u, ' . TOPICS_TABLE . ' t)
+ LEFT JOIN ' . FORUMS_TABLE . ' f ON (f.forum_id = p.forum_id)
WHERE p.post_id IN (' . implode(', ', $post_ids) . ')
AND u.user_id = p.poster_id
AND t.topic_id = p.topic_id';