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 what else can it be? How can I fix this? The second argument is an array.</p>

<p>Error.</p>

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

<p>PHP $cat_id.</p>

<pre><code>Array ( [0] =&gt; 76 [1] =&gt; 89 [2] =&gt; 81 ) 
</code></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>
