Unknown column 'overnight' in 'where clause'