"FROM $user ".
"LEFT JOIN $user_groups ON user_id=ug_user " .
$this->userQueryWhere( $dbr ) .
- " GROUP BY user_name, user_id";
+ " GROUP BY user_name";
return $sql;
}
FROM $categorylinks
LEFT JOIN $page ON cl_from = page_id
WHERE page_namespace = " . NS_MAIN . "
- GROUP BY cl_from, page_namespace, page_title
+ GROUP BY cl_from
HAVING COUNT(*) > 1
";
}
page_namespace
FROM $pagelinks
LEFT JOIN $page ON pl_namespace=page_namespace AND pl_title=page_title
- GROUP BY pl_namespace,pl_title,page_namespace
+ GROUP BY pl_namespace,pl_title
HAVING COUNT(*) > 1";
}
FROM $revision
LEFT JOIN $page ON page_id = rev_page
WHERE page_namespace = " . NS_MAIN . "
- GROUP BY rev_page, page_namespace, page_title
+ GROUP BY rev_page
HAVING COUNT(*) > 1
";
}