- "pl_namespace NOT IN ( '" . NS_USER . "', '" . NS_USER_TALK . "' )",
- "pg2.page_namespace != '" . NS_MEDIAWIKI . "'"
- ),
- 'options' => array(
- 'HAVING' => array(
- "COUNT(*) > $count",
- "COUNT(*) > SUM(pg2.page_is_redirect)"
- ),
- 'GROUP BY' => array( 'pl_namespace', 'pl_title' )
- ),
- 'join_conds' => array(
- 'pg1' => array(
- 'LEFT JOIN', array(
+ 'pl_namespace NOT IN (' . $dbr->makeList( [ NS_USER, NS_USER_TALK ] ) . ')',
+ 'pg2.page_namespace != ' . $dbr->addQuotes( NS_MEDIAWIKI ),
+ ],
+ 'options' => [
+ 'HAVING' => [
+ 'COUNT(*) > ' . $dbr->addQuotes( $count ),
+ 'COUNT(*) > SUM(pg2.page_is_redirect)'
+ ],
+ 'GROUP BY' => [ 'pl_namespace', 'pl_title' ]
+ ],
+ 'join_conds' => [
+ 'pg1' => [
+ 'LEFT JOIN', [