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