title: Exclude result from MySql query
body: <p>I have a Select query something like this </p>
  
  <pre><code>SELECT * FROM table WHERE id = ?
  </code></pre>
  
  <p>I need a condition to it which excludes a specific result.
  <code>if(type = 'tv' and that type's code = '123')</code> 
  then exclude that row from select result.
  Since my SQL skills are not very strong, I am not sure how to make that happen.</p>