Consider linear model $$y = \beta_0 + \beta_1x_1 + \beta_2x_2 + \dots + \beta_kx_k +u$$ I've read in Wooldridge's "Econometric analysis for cross sectional and panel data" that if one of your regressors, say $x_k$, correlated with the error term then you end up with inconsistent estimators for all betas. I wonder why it is the case that all of them are inconsistent?
We know that $$\hat{\beta} - \beta = \left(\frac{1}{n}\sum_{i=1}^{n}x_i'x_i\right)^{-1}\left(\frac{1}{n}\sum_{i=1}^{n}x_i'u_i\right)$$ or in matrix notation $$\hat{\beta} - \beta = (X'X)^{-1}X'u$$
The true $\beta$ is given by $$\beta = \left(\mathbb{E}(x'_ix_i)\right)^{-1}(\mathbb{E}x'_iy)$$
In order for estimator to be consistent we need $$\hat{\beta} \xrightarrow{p} \beta$$ or $$\hat{\beta} - \beta \xrightarrow{p} 0$$ which is equivalent to $$\left(\frac{1}{n}\sum_{i=1}^{n}x_i'u_i\right) \xrightarrow{p} 0$$ or in matrix notation $$\text{plim}X'u = 0$$
If we zoom in then we have $$\begin{bmatrix} row \; x_{1} \\ row \; x_{2} \\ \vdots \\ row \; x_{k} \end{bmatrix} \begin{bmatrix} u_1\\ u_2\\ \vdots\\ u_n \end{bmatrix} = \begin{bmatrix} 0\\ 0\\ \vdots\\ 0 \end{bmatrix} $$
In case that $x_k$ correlated with $u$ we have $$\begin{bmatrix} row \; x_{1} \\ row \; x_{2} \\ \vdots \\ row \; x_{k} \end{bmatrix} \begin{bmatrix} u_1\\ u_2\\ \vdots\\ u_n \end{bmatrix} = \begin{bmatrix} 0\\ 0\\ \vdots\\ \varepsilon \end{bmatrix} $$
So, $\beta_k$ is inconsistent. But other estimates $\beta_0, \dots, \beta_{k-1} $ are consistent. At least that is the way I see it. Where is my mistake?