Unknown column 'DI' in 'where clause'