PDO binding error
<p>I try to get some values from db</p>

<pre><code>$client_ids = array('client_id' =&gt; $this-&gt;arParams['client_id']);
 print_r($client_ids);
 $client_ids_in = implode(',', array_fill(0, count($client_ids), '?'));
 $query = "SELECT odc.curr_id FROM office.dictionary_currency AS odc LEFT JOIN office.adwords_clients_google AS oacg ON odc.curr_code = oacg.client_currency WHERE oacg.client_id IN ($client_ids_in)";
        $google_currency = $this-&gt;DB-&gt;prepare($query);
        $google_currency-&gt;execute($client_ids);
        $google_currency-&gt;setFetchMode(PDO::FETCH_ASSOC);
        $google_currency = $google_currency-&gt;fetch();
        $google_currency = $google_currency['curr_id'];
</code></pre>

<p><code>$client_ids</code>looks like </p>

<pre><code>Array
(
    [client_id] =&gt; 15087
)
</code></pre>

<p><code>$query</code> </p>

<pre><code>SELECT odc.curr_id FROM office.dictionary_currency AS odc LEFT JOIN office.adwords_clients_google AS oacg ON odc.curr_code = oacg.client_currency WHERE oacg.client_id IN (?)
</code></pre>

<p>and I get an error</p>

<pre><code>PHP Warning:  PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in /var/www/instruments/reports/report.php on line 531
</code></pre>

<p>it means,error in row</p>

<pre><code>$google_currency = $this-&gt;DB-&gt;prepare($query);
</code></pre>

<p>What's wrong?How to fix it?</p>