Unknown column 'custom' in 'where clause' (#1054)