title: Error in mysql query
body: <p>I'm running this query: </p>
  
  <pre><code>select sm.stockid as 'id',description as 'descripcion',price as 'precio'
  from stockmaster as 'sm', prices as 'pc' 
  where 
  sm.stockid=pc.stockid and
  sm.stockid='ESPOLVOREO' and 
  curdate() between pc.startdate and pc.enddate;
  </code></pre>
  
  <p>And I keep getting this error, I don't kwon why :/</p>
  
  <pre><code>#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''sm', prices as 'pc' where sm.stockid=pc.stockid and sm.stockid='ESPOLVOREO' a' at line 2
  </code></pre>
  
  <p>I'm running the query directly on the db.
  Thank you</p>