Fixed an SQL query error