Why is mdfind only returning my most recently accessed files?

When I performed a test for a term contained in three files, it showed all the files when running the mdfind command. I would recommend rebuilding your spotlight index on the current folder/s you are in and see if that fixes it. To rebuild your spotlight index: Spotlight: How to re-index folders or volumes