title: Doctrine query syntax error
body: <p>I have a value in database like  <strong>stackover/'!@#/\;"""'.;\';'./</strong>   with all special char.
  Now my problem is that how can I build a query like: </p>
  
  <pre><code>$linkName= // getting from db
  $sql_sm="SELECT d FROM MyBundle:MyTable d WHERE d.name = '$linkName'";
  </code></pre>
  
  <p>I am getting an error:</p>
  
  <pre><code>[Syntax Error] line 0, col 115: Error: Expected end of string, got '\'
  </code></pre>