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