MySQL Error: Unknown column 'test' in 'where clause'