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