Fixed an SQL query