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