PHP error in_array() [function.in-array]: Wrong datatype for second argument
<p>I get the following error for the second argument even when I set the global in the function for it. The second argument is an array.</p>

<blockquote>
  <p>in_array() [function.in-array]: Wrong datatype for second argument </p>
</blockquote>

<p>$cat_id</p>

<pre>
Array ( [0] => 76 [1] => 89 [2] => 81 ) 
</pre>

<p>PHP</p>

<pre><code>for ($x = 0; $x &lt; count($query_cat_id); $x++){
    if(in_array($query_cat_id[$x], $cat_id)){
    //
    }
}
</code></pre>
