title: How do I use a question mark '?' in a Zend_Db_Select where() clause?
body: <p>I have the following MySQL query that I'm trying to translate into an equivalent Zend select() statement:</p>
  
  <pre><code>SELECT `entity_id` FROM `my_table` WHERE `attribute_id` IN (541,554,555,556) \
  AND LOWER(REPLACE(TRIM(`value`), '-', '')) REGEXP '([^[:space:]]* )?$param$'
  </code></pre>
  
  <p><code>$param</code> is a PHP variable that's been filtered to include only alphanumeric characters.</p>
  
  <p>Here is what I have so far with a Zend select() statement:</p>
  
  <pre><code>$db-&gt;select()
     -&gt;from('my_table', 'entity_id')
     -&gt;where('attribute_id IN (?)', array(541,554,555,556))
     -&gt;where('LOWER(REPLACE(TRIM('
         . $db-&gt;quoteIdentifier('value')
         . '), "-", "")) REGEXP "([^[:space:]]* )?'
         . $param
         . '$"');
  </code></pre>
  
  <p>The SQL that's actually being output, when <code>$param = 'foo'</code>:</p>
  
  <pre><code>SELECT `entity_id` FROM `my_table` WHERE (attribute_id IN (541, 554, 555, 556)) \
  AND (LOWER(REPLACE(TRIM(`value`), "-", "")) REGEXP "([^[:space:]]* )foo$")
  </code></pre>
  
  <p>I need to be able to tell where() to not try and replace the question mark. How?</p>