Fixed wrong column name in SQL.