drupal snippet php - ultimi n inserimenti ordinati per tassonomia e/o gruppi di tassonomie

<?php
/**
* This php snippet displays the 10 most recent weblog entries with
* teaser & info.
*
* To increase/decrease the number of weblogs listed
* change the $listlength field to suit.
*
* tested with drupal 6.19
*/
$listlength=4;
$result1 = pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n INNER JOIN term_node ON n.nid = term_node.nid WHERE term_node.tid = 57 OR term_node.tid = 58 OR term_node.tid = 59 OR term_node.tid = 64 OR term_node.tid = 63 OR term_node.tid = 62 OR term_node.tid = 61 OR term_node.tid = 60 OR term_node.tid = 65 ORDER BY n.created DESC"), $listlength);
while ($node = db_fetch_object($result1)) {
$output .= node_view(node_load(array('nid' => $node->nid)), 1);
}
print $output;
?>