MySQL error: Unknown column 'swat' in 'where clause'