title: How to put IF statement in MySQL query
body: <p>I have a query that is simply selecting from 3 tables.</p>
  
  <ol>
  <li><p>select from the comments table for all comments on an article</p></li>
  <li><p>select from UserID table to find what kind of user it is</p></li>
  <li><p>IF the user is one type, search one table...ELSE search another table for the final info.</p></li>
  </ol>
  
  <p>How would I go about this? I'm a little new at MySQL stuff, so i totally appreciate your patience!</p>
  
  <p>PS - let me know if this isnt clear...</p>
  
  <p>Thanks!</p>