SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}Felanitx{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}' OR prCity = 'Felanitx' OR prZip = 'Felanitx' OR prStreet LIKE '{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}Felanitx{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}' OR prCountry = 'Felanitx') AND (prLocation LIKE '{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}Spain{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}Spain{a145e03c2619b17115981d0eda1b50c775b64c96cac7a652b462a27700bd7b94}' OR prCountry = 'Spain')