Correcting SQL typos.
SQL query for review notes corrected for typos. Table names not
wrapped in braces, and table joins incorrect. (Looks like somewhere
during copy-paste of code block, wrong version was used. Vim yanks
frequently trip me up.)