title: You have error in your SQL syntax
body: <p>can you help me with repair SQL syntax in this query?</p>
  
  <pre><code>SELECT percent FROM `freedelivery` 
  WHERE freedelivery.id_currency=1 AND freedelivery.price&gt;0 AND freedelivery.price&lt;=2722,5 
  AND freedelivery.percent&gt;0 AND freedelivery.percent&lt;=100 AND '2016-10-25' 
  BETWEEN freedelivery.`from` AND freedelivery.`till`
  </code></pre>
  
  <p>I'm getting the error "You have error in your sql syntax.".</p>
  
  <p>Thanks</p>