uid > 0) && ($user->uid <= 2)) {
$maxresults = $resultperpage * 10;
} else {
$maxresults = $resultperpage * 5;
}
$result = pager_query(db_rewrite_sql('SELECT n.nid FROM {node} n INNER JOIN {uc_products} p ON n.vid = p.vid WHERE n.status = 1 AND NOT EXISTS(SELECT * FROM term_node tn WHERE tn.nid = n.nid AND tn.tid = 421) ORDER BY n.sticky DESC, n.created DESC'),$resultperpage,0,'SELECT '.$maxresults);
$output = '';
for ($i = 0; $node = db_fetch_object($result); $i++) {
$output .= node_view(node_load($node->nid),TRUE);
}
$output .= theme('pager');
print $output;
?>