Strips AND/OR from queries (Hack)