SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}La{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}' OR prCity = 'La' OR prZip = 'La' OR prStreet LIKE '{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}La{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}' OR prCountry = 'La') AND (prLocation LIKE '{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}Zagaleta{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}' OR prCity = 'Zagaleta' OR prZip = 'Zagaleta' OR prStreet LIKE '{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}Zagaleta{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}' OR prCountry = 'Zagaleta') AND (prLocation LIKE '{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}Spain{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}Spain{295af9f78bc990a91d1e9ab79926b37d6b3cc0328257b08ee315acb8fb510ae4}' OR prCountry = 'Spain')