Can't perform query on database Error: Unknown column 'at' in 'where clause'