title: What first run in mysql query
body: <p>Dear friends i am unable to understand mysql query from where.</p>
  
  <pre><code>select * from `tablename` where name='123'
  </code></pre>
  
  <p>in this query which section run first select or where.
  And in where clause how run mysql from left to right or right to left.</p>
  
  <p>In query </p>
  
  <pre><code>"select * from where id='123' and name like 'as%' or name like '% as'"
  </code></pre>
  
  <p>its give result of all id, not only id=123. How its run. </p>