title: get data based on id
body: <p>Am working on a project using codeigniter and mongodb.How can i fetch data from mongodb based on _id.I mean how can i give the where condition in '$query=$this->mongo_db->get_where('photos', $where)'.I need to fetch the photos_path based on the 'id'.Please help</p>
  
  <p>Here is the array format of my mongodb collection:-</p>
  
  <pre><code>    Array
  (
      [0] =&gt; Array
      (
          [_id] =&gt; MongoId Object
              (
                  [$id] =&gt; 510f7e0d2217f4fc03000000
              )
  
          [key] =&gt; organization_img
          [photos_path] =&gt; uploads/img_51359969805.gif
      )
  
  [1] =&gt; Array
      (
          [_id] =&gt; MongoId Object
              (
                  [$id] =&gt; 5111ef2f2217f4280a000000
              )
  
          [key] =&gt; organization_img
          [photos_path] =&gt; uploads/image.png
      )
  </code></pre>
  
  <p>)</p>
  
  <p>Thanks</p>