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