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