Unknown column 'comments.type' in 'where clause'