Using the package hyperref I'm noticing that I can't reference things properly. It seems that \autoref actually references the latest section, table, equation or figure (in short environment) before a label. Is this right? and what am I doing wrong?
\subsection{One one}
I want to write: `\autoref{tab:one}' shows such and such:
\begin{table}
\caption{some bumpf}
\label{tab:one}
\end{table}
Gives me: I want to write subsection 1.1 shows such and such.
EDIT
I have caption I forgot it in this instance. The question I'm asking is why my reference is to something that is not labelled? Eg, why do I get a reference to a subsection if the label is clearly in the figure environment or table environment? Is it really always because I may have forgotten the order of label after caption somewhere?

tableenvironment for the label to get a sensible value. So\caption{<text of the caption>}\label{tab:one}– egreg May 23 '13 at 21:54