<?
	$Query = "SELECT n.ID, n.Name, n.Description, c.Name, (to_days(now()) - to_days(Created)), n.Icon, n.Parent ";
	$Query .= "FROM node n, pathway p, content c ";
	$Query .= "WHERE n.Parent = p.ID ";
	$Query .= "AND n.Content = c.ID ";
	if(!$UserInfo["Login"])
	{
		$Query .= "AND p.Private='N' ";
	}
	$Query .= "ORDER BY Created DESC ";
	$Query .= "LIMIT 10 ";
	
	$DatabaseResult = mysql_query($Query, $DatabaseLink);

	$numRows = mysql_NumRows($DatabaseResult);

	if($numRows > 0)
	{
		print("<B>10 Newest Nodes</B><BR>\n");
		include("$Application_Root/modules/include/display_nodes");
	}
	else
	{
		print("No nodes yet");
	}
	
	
?>