query failedUnknown column 'Type' in 'field list'