SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}Bahia{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}' OR prCity = 'Bahia' OR prZip = 'Bahia' OR prStreet LIKE '{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}Bahia{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}' OR prCountry = 'Bahia') AND (prLocation LIKE '{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}Grande{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}' OR prCity = 'Grande' OR prZip = 'Grande' OR prStreet LIKE '{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}Grande{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}' OR prCountry = 'Grande') AND (prLocation LIKE '{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}Spain{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}Spain{14b294489a85d23339891a0a98d002e8801005b5253d137a61cfa4080c49210c}' OR prCountry = 'Spain')