From ce5cd95dbbce0aea427c163778a8f01b680f55d8 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 10 Jun 2004 16:00:21 +0000 Subject: [PATCH] select less fields from sql. --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 71bd88f731..a4766e500e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1180,7 +1180,7 @@ class Title { $parents = array(); # get the parents categories of this title from the database - $sql = "SELECT DISTINCT cl_from,cur_namespace,cur_title,cur_id FROM cur,categorylinks + $sql = "SELECT DISTINCT cur_id FROM cur,categorylinks WHERE cl_from='$titlekey' AND cl_to=cur_title AND cur_namespace='$cns' ORDER BY cl_sortkey" ; $res = wfQuery ( $sql, DB_READ ) ; -- 2.20.1