From 67c580e14861de94d79a07b57ad13f1475961806 Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 22 Apr 2006 18:42:27 +0000 Subject: [PATCH] - Bug #1185 git-svn-id: file:///svn/phpbb/trunk@5831 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/ucp/ucp_main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php index c5b96ce7b6..7959e656de 100644 --- a/phpBB/includes/ucp/ucp_main.php +++ b/phpBB/includes/ucp/ucp_main.php @@ -335,8 +335,8 @@ class ucp_main $sql = "SELECT t.* $sql_f_select $sql_t_select - FROM (" . TOPICS_WATCH_TABLE . ' tw, ' . TOPICS_TABLE . " t - $sql_join ) + FROM (" . TOPICS_WATCH_TABLE . ' tw, ' . TOPICS_TABLE . " t) + $sql_join WHERE tw.user_id = " . $user->data['user_id'] . ' AND t.topic_id = tw.topic_id ORDER BY t.topic_last_post_time DESC';