title: SQL select columns from table where name='a statement with 2 and more word'
body: <p>When my query is:</p>
  
  <pre><code>select * from table_name where name='jim'
  </code></pre>
  
  <p>everything is fine.</p>
  
  <p>But when my query is:</p>
  
  <pre><code>select * from table where ='a statement with 2 and more word'
  </code></pre>
  
  <p>For example this query:</p>
  
  <pre><code>select columns from table where ='jim carrey'
  </code></pre>
  
  <p>The query just considers 'jim'.  In other words, the query just considers the first word and does not consider whatever comes after that.</p>