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