Only get documents where ID of person logged in in array

If you had a junction table which linked users to documents, it’d be easier (and more efficient) to query for this sort of thing.
Yes, we’ve mentioned that a few times. Maybe “next” project we can do PDO and better DB structure?