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