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