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