Yeah, there are definitely some annoyances with database access in PHP, but I think the best approach for me is to learn how plain ol' PHP does it before going the route of an extraction library.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results