title: How to make conditions with CASE WHEN in SphinxQL?
body: <p>How can I set condition for Sphinx search? In my custom MySQL code, which is as followed. </p>
  
  <p>How can I re-code it as Sphinx search?</p>
  
  <pre><code>$condition = "(CASE WHEN related_type ='Course' THEN related_id = 1 
                ELSE related_id IN(2,3,4)
                END)";
  </code></pre>