title: A MySQL IF condition
body: <p>In my query I have an IF statement:</p>
  
  <pre><code>IF(friend.block, 'yes', 'no') 
  </code></pre>
  
  <p>where friend.block value is 0 or 1.. but either way its putting 'yes'.. any idea?</p>