Refactored a few SQL queries to remove redundant conditions.