Here's the question:
Let $X(t)$ be a stochastic process such that
$$ dX = a(t)Xdt + b(t)XdW(t) $$
where $a(t)$ and $b(t)$ are $\mathcal{F}_t$-adapted processes with "good" properties. Furthermore $b(t)$ is non-zero almost surely. $W(t)$ is a wiener process with respect to a measure $P$. For which $a(t)$ is $X(t)$ a $P$-martingale?
My attempt:
A martingale cannot have a drift term so it must be of the form $dX = v(t,X)dW(t)$ for some $v$. Therefore $a(t) \equiv 0$.
This was incorrect, but no feedback was given as to why this is not right. Could anyone point out the mistake and/or give me a hint in the right direction?