title: Querying on Leads Status in SugarCRM Using NuSOAP
body: <p>I'm trying to get back an entry list of leads by status. The query I'm using is "leads.status = 'New'" however when I try this in php, I get back leads of other statuses as well.</p>
  
  <pre><code>    function get_leads_over_x_days($session_id, $days)
      {
          $daysAgo = date("m/d/Y", strtotime($days . ' days ago'));
  
          $where = "leads.status='New'";
  
          $package = array(
                              "session" =&gt; $session_id,
                              "module_name" =&gt; "Leads",
                              "ids" =&gt; "",
                              "query" =&gt; $where,
                              "order_by" =&gt; "",
                              "select_fields" =&gt; "",
                              "max_results" =&gt; $max_results,
                              "deleted" =&gt; 0,
                          );
  
  
          $result = $this-&gt;client-&gt;call("get_entry_list", $package);
  
          if (!$this-&gt;is_error($result)) {
              return $result["entry_list"];
          }
      }
  </code></pre>
  
  <p>Now I have performed the same soap call using SoapUI (<a href="http://www.soapui.org/" rel="nofollow">http://www.soapui.org/</a>) and the records returned are exactly what I expect. I'm not sure what I'm doing wrong, or if this is a nuSOAP issue. </p>