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