Mongodb 2.6.0-rc2 and PHP 1.4.5 - find _id $in <p>A simple query like this:</p> <pre><code>$a = array('_id' =&gt; array( '$in' =&gt; array_values($ids) ) ); var_dump($a); $cursor2 = $data-&gt;find( $a ); </code></pre> <p>works in mongodb 2.4.9, however, in 2.6.0-rc2 returns this:</p> <pre><code>Type: MongoCursorException Code: 17287 Message: Can't canonicalize query: BadValue $in needs an array </code></pre> <p>The output from var_dump:</p> <pre><code>array(1) { ["_id"]=&gt; array(1) { ["$in"]=&gt; array(10) { [0]=&gt; object(MongoId)#57 (1) { ["$id"]=&gt; string(24) "52214d60012f8aab278eacb6" } [1]=&gt; object(MongoId)#58 (1) { ["$id"]=&gt; string(24) "52214d60012f8aab278eaca8" } [2]=&gt; object(MongoId)#59 (1) { ["$id"]=&gt; string(24) "52214d60012f8aab278eaca7" } } } } </code></pre> <p>I wonder if this is a Mongo or PHP related?</p> <p>THanks!</p>