Unknown column 'm.view' in 'field list'