while ( $blockEnd <= $end ) {
$cond = "page_id BETWEEN $blockStart AND $blockEnd AND page_restrictions !='' AND page_restrictions !='edit=:move='";
$res = $db->select( 'page', array('page_id', 'page_restrictions'), $cond, __FUNCTION__ );
while ( $blockEnd <= $end ) {
$cond = "page_id BETWEEN $blockStart AND $blockEnd AND page_restrictions !='' AND page_restrictions !='edit=:move='";
$res = $db->select( 'page', array('page_id', 'page_restrictions'), $cond, __FUNCTION__ );