title: Symfony2 error Expected end of string
body: <p>Trying to run a query with symfony and I get this error:</p>
  
  <pre><code>[Syntax Error] line 0, col 83: Error: Expected end of string, got 'username'
  </code></pre>
  
  <p>This code throws that error:</p>
  
  <pre><code>$query = $em-&gt;createQuery(
              'SELECT username
              FROM BLOGBlogBundle:user
              WHERE username= :usrname'
          )-&gt;setParameter('usrname', $usr);
          $products = $query-&gt;getResult();
  </code></pre>
  
  <p>What am I doing wrong?</p>