title: Error with a Symfony query : Expected Literal, got '"'
body: <p>I have the following query: </p>
  
  <pre><code>$query = $em-&gt;createQueryBuilder()
              -&gt;select('u.id, u.username, u.username_canonical, u.email, u.email_canonical, u.last_login, u.name, u.type, u.phone, u.site, u.agency, u.subtype, u.info, u.created_date, u.vip')
              -&gt;from('ContrateAdminBundle:Fosuser', 'u')
              -&gt;where('u.created_date BETWEEN "'.$fromdateaccounts.'" AND "'.$todateaccounts.'" ')                      
              -&gt;getQuery();
  
  $results = $query-&gt;getResult();
  </code></pre>
  
  <p>in Symfony to fetch user data, but I got the following error:</p>
  
  <pre><code>[Syntax Error] line 0, col 223: Error: Expected Literal, got '"'
  500 Internal Server Error - QueryException
  1 linked Exception: QueryException »
  </code></pre>
  
  <p>My query output is:</p>
  
  <pre><code>SELECT u.id, u.username, u.username_canonical, u.email, u.email_canonical, u.last_login, u.name, u.type, u.phone, u.site, u.agency, u.subtype, u.info, u.created_date, u.vip
  FROM ContrateAdminBundle:Fosuser u
  WHERE u.created_date BETWEEN "2014-08-04 13:29" AND "2014-10-30 13:29" 
  </code></pre>