[Tex/LaTex] How to add notes below tables

tables

I've been trying to add notes below a table but keep on getting error: not in outer par mode. could someone please help me?

aobal

\begin{table*}[ht]
\caption{Table 2 Top 10 Philippine Exports to ASEAN, 1991-2012} 
  \begin{threeparttable}
  \centering
    \begin{tabular}{p{0.15\linewidth}
                        p{0.45\linewidth}
                        p{0.20\linewidth}}
     \hline
     PSCC&  & Description\tnote{a} & Shares         \\
     \hline

        9310221   & Semi-conductor devices, Manuf from Mat'l on consign basis & 31.5    \\
        7764109    & Finished Elect'l \& Electronic Machinery & Parts, Manuf fr Mat'l-consign, NES & 12.7  \\
        9310229  & Wafers \& discs, electrically circuit-programmed, whether or not coated on one side with gold or aluminium | Other & 5.3\\      
        7764900  & [Other] electronic [integrated circuits and] microassemblies & 3.4   \\
        7599700  & Parts \& accessories of machines of 752 & 3.2\\
        6821201  & Cathodes \& sections of cathodes, of refined copper \\
        7764100 & Other Semiconductor devides & 2.4 \\
        7843919      & Unassembled fuel tank; engine brackets & 2.4\\
        7843409 & Unassembled gear boxes for vehicles of heading 87.01 (except subheading 8701.10 or 8701.90)(agricultural tractors) & 1.5\\
        7527000 & Optical disk drives, including CD-ROM drives, DVD drives and CD-R drives & 1.5\\

     \end{tabular}
    \begin{tablenotes}
      \small
      \item [a] Semiconductor products include:  Wafer \& discs (Pscc7 7764102, 7764109, 7764300); Smart cards (7764101); Hybrid integrated circuits (7764500); Electronic microassemblies (7764900); semiconductor devices from materials on consignment basis (9310221); and Diodes (9310222).
    \end{tablenotes}
  \end{threeparttable}
\end{table*}

Best Answer

Here is a code that compiles. There were a few & that should have been \&. Btw, why did you number the table by yourself? This makes two numbers for one table. I took the opportunity to improve the table, especially some vertical padding between rows, rule commands from booktabs and the S column type for the last column (from siunitx).

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
\usepackage{booktabs, caption, makecell, siunitx}
\renewcommand\theadfont{\bfseries}
\usepackage[flushleft]{threeparttable}
\setcellgapes{2pt}

\begin{document}

\begin{table*}[ht]
  \centering\makegapedcells
  \caption{Top 10 Philippine Exports to ASEAN, 1991-2012}
  \begin{threeparttable}
    \centering
    \begin{tabular}{p{0.15\linewidth}
        >{\RaggedRight}p{0.45\linewidth}
        S[table-format=2.1]}
        \toprule
        PSCC & Description\tnote{a} & {Shares} \\
        \midrule
        9310221 & Semi-conductor devices, Manuf from Mat'l on consign basis & 31.5 \\
        7764109 & Finished Elect'l \& Electronic Machinery \& Parts, Manuf fr Mat'l-consign, NES & 12.7 \\
        9310229 & Wafers \& discs, electrically circuit-programmed, whether or not coated on one side with gold or aluminium | Other & 5.3 \\
        7764900 & [Other] electronic [integrated circuits and] microassemblies & 3.4 \\
        7599700 & Parts \& accessories of machines of 752 & 3.2 \\
        6821201 & Cathodes \& sections of cathodes, of refined copper \\
        7764100 & Other Semiconductor devides & 2.4 \\
        7843919 & Unassembled fuel tank; engine brackets & 2.4 \\
        7843409 & Unassembled gear boxes for vehicles of heading 87.01 (except subheading 8701.10 or 8701.90)(agricultural tractors) & 1.5 \\
        7527000 & Optical disk drives, including CD-ROM drives, DVD drives and CD-R drives & 1.5 \\
        \bottomrule
      \end{tabular}
      \begin{tablenotes}
        \footnotesize
        \item [a] Semiconductor products include: Wafer \& discs (Pscc7 7764102, 7764109, 7764300); Smart cards (7764101); Hybrid integrated circuits (7764500); Electronic microassemblies (7764900); semiconductor devices from materials on consignment basis (9310221); and Diodes (9310222).
      \end{tablenotes}
    \end{threeparttable}
  \end{table*}

\end{document} 

enter image description here