SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}Port{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCity = 'Port' OR prZip = 'Port' OR prStreet LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}Port{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCountry = 'Port') AND (prLocation LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}de{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCity = 'de' OR prZip = 'de' OR prStreet LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}de{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCountry = 'de') AND (prLocation LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}Sóller{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCity = 'Sóller' OR prZip = 'Sóller' OR prStreet LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}Sóller{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCountry = 'Sóller') AND (prLocation LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}Spain{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}Spain{6cbe3d1a508dcedc5c31a64a722b4f8519c17f958722cec7eb6eb0c9a7130fab}' OR prCountry = 'Spain')