Unknown column 'external' in 'where clause'