Folders > Favourites - User Specific

I'm trying to create an eQL or (preferably) SQL query to extract folders and specifically favourites folders related to each user.

I've already developed queries to extract folders and folder structures, but I'm seeking the missing part that links a Favourites folder to a Person.

Does anyone know what relates (in the database) a favourites folder to a person.

Thanks