SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}Bad{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}Bad{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}' OR prCountry = 'Bad') AND (prLocation LIKE '{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}Cannstatt{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}' OR prCity = 'Cannstatt' OR prZip = 'Cannstatt' OR prStreet LIKE '{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}Cannstatt{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}' OR prCountry = 'Cannstatt') AND (prLocation LIKE '{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}Germany{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}Germany{036f30002b76336801a16c5a885c871fd61d2db07113cb76d35e110e2b8158a2}' OR prCountry = 'Germany')