(Original answer edited to make it shorter)
It suffices to show this for $l = 1$. So suppose $f$ is a locally $L_1$ function on an $n$-dimensional domain whose weak derivatives are all locally in $L_p$. By the Sobolev inequalityIt also suffices to show that $f$ is locally in $L_q$ for at least onesome $q > p$$q \ge p$. (If $p < n$, thenBut this holds for $q = pn/(n-p)$. If $p > n$, then it holds for $q = \infty$. If $p = n$, then it holds for all $q < \infty$.) Byfollows immediately by the HolderSobolev inequality, it follows that $f$ is also locally in $L_p$.