Answer
Put the TRUE value in single quotes — WHERE TASK_LEADER_DB = 'TRUE' rather than the bare, unquoted TRUE — since _DB-suffixed flag columns like this one are typically VARCHAR2 columns storing the literal string 'TRUE'/'FALSE', not a native Oracle BOOLEAN type. Comparing against the unquoted TRUE keyword can silently fail to filter as intended (effectively matching every row rather than specifically the task-leader row), which is why the query was returning the wrong resource despite not throwing an error.