P(W|A) = P(A|W)P(W)/P(A)
You're right, though, it shouldn't be written as P(W|A) in that case, that's misleading.
P(W|A) = P(A|W)P(W)/P(A)