Fixed invalid column name in query