Fix column name result in query

Fixes a bug in Model.query where column names/values were not being correctly returned when multiple columns were present in the resultset.