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