What would be the most efficient way to select node for a content type?
&lt;?php
$query = db_select('node', 'n')
  -&gt;fields('n', array('nid', 'title', 'status'))
  -&gt;condition('type', 'info_page')
  -&gt;addTag('node_access')
  -&gt;execute();
while ($result = $query-&gt;fetch()) {
  print_r($result);
}


Query against node table must be a dynamic query with "node_access" tagging to prevent node access system by-passing.