• I faced such issues sometimes back. I had separated the queries.

    As long as you have many condition, it would be great if you can go for a dynamic parameterized query execution.