title: Drupal 7 EntityFieldQuery using two fields
body: <p>I have created a pull of images based upon a boolean field being checked. Now I would like to expand that conditional logic to also select from categories, using either a select list or a taxonomy list. Here is what I have:</p>
  
  <pre><code>function ycs_list() {
    $query = new EntityFieldQuery;
    $query-&gt;entityCondition('entity_type', 'node')
   -&gt;entityCondition('bundle', YCS_NODE_TYPE)
    -&gt;propertyCondition('status', 1)
    -&gt;fieldCondition('field_active_image', 'value', 1, '=');
    $result = $query-&gt;execute();
    return $result;
  }
  </code></pre>
  
  <p>How can I expand this to use two fileds? If I were to use a taxonomy list, would I use something other than a EntityFieldQuery or is it just an additional condition of this?</p>