SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}Berlin{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCity = 'Berlin' OR prZip = 'Berlin' OR prStreet LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}Berlin{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCountry = 'Berlin') AND (prLocation LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}/{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}/{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCountry = '/') AND (prLocation LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}Mahlsdorf{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCity = 'Mahlsdorf' OR prZip = 'Mahlsdorf' OR prStreet LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}Mahlsdorf{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCountry = 'Mahlsdorf') AND (prLocation LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}Germany{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}Germany{310efda2ce39e91e9a604301bda2bdd60035ad12b9958a040bb2090791861f56}' OR prCountry = 'Germany')