• I resolved the issue by rewriting my queries with case statements.