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