well the 'type' field shows if the document is one of 4 possible types i work with in this database. lets just say A, B, C, and D for now if thats ok.
i dont think it's related to this query though, as the only fields from the 'documents' table i'm using are the 'status' and 'document' fields...