Fix column name in query