title: Get the latest 10 articles on a specified node type?
body: <p>now, if the node type is article. on the term page's left,  i want to show the latest 10 articles's title  which  node type is article. i don't want to use views, how do i do? thank you.</p>
  
  <p>if i want to show the latest 10 articles's title  which  node type is article on the node page's left . how to write the query. many thanks.</p>
  
  <p>ps:i found EntityFieldQuery maybe can do this, but i don't now how to do out put it.</p>
  
  <p>my code:</p>
  
  <pre><code>$query = new EntityFieldQuery();
  
  $query
   -&gt;entityCondition('entity_type', 'node')
   -&gt;entityCondition('bundle', 'article')
   -&gt;propertyCondition('status', 1)
   -&gt;propertyOrderBy('created', 'DESC')
    -&gt;range(0, 10);
  
  $result = $query-&gt;execute();
  </code></pre>