title: sql query in "WHERE IN" clause
body: <pre><code>select * from tablename 
       where id in(select id from tablename2 where condition UNION select -1)
  </code></pre>
  
  <p>Is it ok to use select -1 as if the inner query does not result anything it will give error. It is feasible or not?</p>