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