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