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