SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}Berlin{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCity = 'Berlin' OR prZip = 'Berlin' OR prStreet LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}Berlin{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCountry = 'Berlin') AND (prLocation LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}/{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}/{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCountry = '/') AND (prLocation LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}Schmöckwitz{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCity = 'Schmöckwitz' OR prZip = 'Schmöckwitz' OR prStreet LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}Schmöckwitz{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCountry = 'Schmöckwitz') AND (prLocation LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}Germany{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}Germany{a395f46e8f707f35c303b4cbb72297e67fb1cb75fe877b963978b1841eb3aaa2}' OR prCountry = 'Germany')