I try to use a table in a minipage like this:
\begin{center}
\begin{minipage}[t]{.48\textwidth}
\subsection{My Title}
Some text
\begin{table}[h!]
\begin{tabular}{ l c l }
\hline
Quality & Abbr. & Frequency \\
\hline
Uncirqulated & UNC & \\
\hline
\end{tabular}
\end{table}
\end{minipage}\quad
\begin{minipage}[t]{.48\textwidth}
...
\end{minipage}
\end{center}
And I get this error on the line \begin{table}[h!]:
Not in outer par mode.
LaTeX
Undefined control sequence.
\latex@xfloat ...vf \fi \global \setbox @currbox
LaTeX
Missing number, treated as zero.
<to be read again>
LaTeX
What did I wrong or what I miss?



tablein this case) inside a minipage. – Imran Jan 07 '22 at 17:07figureortableenvironment -- in aminipage, as doing so would fly in the face of the purpose of using a float to begin with. Please tell us what you're trying to achieve, typographically speaking. – Mico Jan 07 '22 at 17:07[h!]as the positioning argument. See this answer for details on float placement. – Imran Jan 07 '22 at 17:12