title: Escape double quotes inside query
body: <p>I'm scratching my head with this and i can't figure what's wrong</p>
  
  <pre><code> $result=mysql_query("SELECT * 
                       FROM `offers` 
                       WHERE 
                       (
                           type='$tran' &amp;&amp; 
                           imob='$typeimob' &amp;&amp;
                           (
                             'str_replace("_"," ",$zone)'
                              LIKE CONCAT('%',area,'%')
                           )
                       ) 
                       ORDER BY `price` DESC 
                       LIMIT 0, 50;");
      }
  </code></pre>
  
  <p>This is inside a php.
  The problem is that I have to escape the double quotes inside str_replace, and i tried <code>str_replace(\"_\",\" \",$zone)</code> but it doesn't work.</p>
  
  <p>Any idea?</p>
  
  <p>Thanks</p>