Unknown column 'adapter' in 'where clause'