1 as value,
COUNT(*) as count
FROM $categorylinks
- GROUP BY cl_to";
+ GROUP BY 1,2,3,4";
return $s;
}
"FROM $user ".
"LEFT JOIN $user_groups ON user_id=ug_user " .
$this->userQueryWhere( $dbr ) .
- " GROUP BY user_name";
+ " GROUP BY 1, 2, 3, 4, 5";
return $sql;
}
FROM $categorylinks
LEFT JOIN $page ON cl_from = page_id
WHERE page_namespace = " . NS_MAIN . "
- GROUP BY cl_from
+ GROUP BY 1,2,3
HAVING COUNT(*) > 1
";
}
il_to as title,
COUNT(*) as value
FROM $imagelinks
- GROUP BY il_to
+ GROUP BY 1,2,3
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
+ GROUP BY 1,2,3,5
HAVING COUNT(*) > 1";
}
cl_to as title,
COUNT(*) as value
FROM $categorylinks
- GROUP BY cl_to
+ GROUP BY 1,2,3
";
}
page_title as title,
COUNT(*) as value
FROM $revision
- LEFT JOIN $page ON page_id = rev_page
+ JOIN $page ON page_id = rev_page
WHERE page_namespace = " . NS_MAIN . "
- GROUP BY rev_page
+ GROUP BY 1,2,3
HAVING COUNT(*) > 1
";
}
FROM $categorylinks
LEFT JOIN $page ON cl_to = page_title AND page_namespace = ". NS_CATEGORY ."
WHERE page_title IS NULL
- GROUP BY cl_to
+ GROUP BY 1,2,3
";
}
WHERE pg1.page_namespace IS NULL
AND pl_namespace NOT IN ( 2, 3 )
AND pg2.page_namespace != 8
- GROUP BY pl_namespace, pl_title
+ GROUP BY 1,2,3
HAVING COUNT(*) > $count";
}