You may have moved the log to the other side of the equation instead of rewriting it as an exponential equation, or simply substituted for the wrong variable.