As part of the 12366 MPQ test, we tried to apply a stored query which in our case also contained a $DocumentEntryFormatCode. As the title says, an error was thrown: missing FROM-clause entry for table "formatcode_code".
The cause seems to be a server issue, in which the WHERE-clause of the SQL query "formatcode_code" and "formatcode_scheme" are referenced, while in the FROM-clause only "Classification fmtCode" exists.
The full log message is available at http://ihexds.nist.gov/LogReader/message.html?message=1363865571866213.125.57.82