title: fetching array with where condition in zend framework
body: <p>how to fetch array where catid= "someid" ?</p>
  
  <p>i did try this but didn't work</p>
  
  <pre><code>public function findCatArr($catid)
  {
      $select = $this-&gt;getDbTable()-&gt;select();
      $select-&gt;setIntegrityCheck(false);
      $select-&gt;from('photo',array('id','catid','pic','desc'
      ))-&gt;where("catid"." LIKE '%".$catid."%'");
      $row = $this-&gt;getDbTable()-&gt;fetchAll($select);
  
  
      if (0 == count($row)) {
          return;
      }else{
  
          return $row-&gt;toArray();
  
  
          }   
      }
  </code></pre>