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