I could not find this query being used anywhere else, so this seems to be like dead code; I removed it and replaced it by needed clean-up.