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