SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}Faro{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}' OR prCity = 'Faro' OR prZip = 'Faro' OR prStreet LIKE '{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}Faro{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}' OR prCountry = 'Faro') AND (prLocation LIKE '{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}Portogallo{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}' OR prCity = 'Portogallo' OR prZip = 'Portogallo' OR prStreet LIKE '{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}Portogallo{3149ce371d4a5033bcb0066c514738f19e376d1895272b3bec7bf7601cde62be}' OR prCountry = 'Portogallo')