Unknown column 'distt' in 'where clause'