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