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