$res = $db->select( 'page', [ 'page_id', 'page_namespace' ], $cond, __METHOD__ );
foreach ( $res as $row ) {
$db->update( 'pagelinks',
$res = $db->select( 'page', [ 'page_id', 'page_namespace' ], $cond, __METHOD__ );
foreach ( $res as $row ) {
$db->update( 'pagelinks',