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