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