title: query on embedded mongodb->documents (objects)
body: <p>I have this structure:</p>
  
  <pre><code>{
   "_id": NumberInt(101),
  "link_id": {
  "125": {
  "thumb_position": NumberInt(1),
  "last_scan": NumberInt(1234563645),
  "row_numb": NumberInt(301),
  "clicks": NumberInt(120)
  },
  "126": {
   "thumb_position": NumberInt(2),
   "last_scan": NumberInt(-2147483648),
   "row_numb": NumberInt(1301),
   "clicks": NumberInt(199)
     },
     {
  ...
     }
  }
  }   
  </code></pre>
  
  <p>the thing is I want to query by _id and link_id. I've tried in PHP:</p>
  
  <pre><code> $arr_ = array("_id" =&gt; intval(101), "link_id" =&gt; "125");
   $res = $collection-&gt;findOne($arr_);
  </code></pre>
  
  <p>and many other variant and no results. If I only search for the _id everything works. Any ideas? Thx a lot!!</p>