Drupal 7 database queries

$result = db_select('node', 'n')
    ->fields('n', array('nid'))
    ->condition('status', 0,'>')
    ->condition('type', 'car')
    ->execute();
  
  foreach($result as $row) {
    $node = node_load($row->nid);
    dsm($node);
  }


$node_title = db_query('SELECT title FROM {node} WHERE nid = :nid', array(':nid' => $nid))->fetchField();