title: Two different get_posts() returning same post
body: <p>I am using Wordpress and  trying to create some boxes retrieving information from Adanvec Customs Fields on a custom post type.</p>
  
  <p>I have this code:</p>
  
  <pre><code>&lt;div class="col-sm-2 hidden-xs"&gt;
      &lt;?php
      $box1 = get_front_page_box("Box 1");
      $style_front = get_box_style($box1-&gt;ID, "front");
      echo $box1-&gt;ID;
      ?&gt;
      &lt;div id="front-box-1" class="front-box height-low &lt;?php echo $box1-&gt;ID; if(has_back_panel($box1-&gt;ID)) echo "flip"; ?&gt;"&gt;
          &lt;div class="front" style="&lt;?php echo $style_front; ?&gt;"&gt;&lt;a href="#"&gt;Banana&lt;/a&gt;&lt;/div&gt;
          &lt;?php
          if(has_back_panel($box1-&gt;ID)):
              $style_back = get_box_style($box1-&gt;ID, "back");
          ?&gt;
          &lt;div class="back" style="&lt;?php echo $style_back; ?&gt;"&gt;&lt;/div&gt;
          &lt;?php endif; ?&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="col-sm-5 hidden-xs"&gt;
      &lt;?php
      $box2 = get_front_page_box("Box 2");
      $style_front = get_box_style($box2-&gt;ID, "front");
      echo $box2-&gt;ID;
      ?&gt;
      &lt;div id="front-box-2" class="front-box height-low &lt;?php echo $box2-&gt;ID; if(has_back_panel($box2-&gt;ID)) echo "flip"; ?&gt;"&gt;
          &lt;div class="front" style="&lt;?php echo $style_front; ?&gt;"&gt;&lt;a href="#"&gt;Banana&lt;/a&gt;&lt;/div&gt;
          &lt;?php
          if(has_back_panel($box2-&gt;ID)):
              $style_back = get_box_style($box2-&gt;ID, "back");
          ?&gt;
          &lt;div class="back" style="&lt;?php echo $style_back; ?&gt;"&gt;&lt;/div&gt;
          &lt;?php endif; ?&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And these functions:</p>
  
  <pre><code>function get_front_page_box($name) {
      $args = array(
          'post_title'   =&gt; $name,
          'post_type'    =&gt; 'front-page-box',
          'post_status'  =&gt; 'publish'
      );
  
      $box_array = get_posts($args);
  
      $box = $box_array ? $box_array[0] : false;
  
      print_array($box);
      return $box;
  }
  
  function get_box_style($id, $side) {
      $style = "";
      if(get_field($side."_panel_background_color", $id)) $style = "background-color:".get_field($side."_panel_background_color", $id).";";
  
      return $style;
  }   
  </code></pre>
  
  <p>But for some reason both boxes have the same details (both from Box 2).
  Any idea why these are returning the same info? Both posts ("Box 1" and "Box 2" exist under the <code>front-page-box</code>custom post type.</p>