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