Changed fetch queries to use subselects


git-svn-id: svn://oss.dbc.dk/sync_php/php/OpenLibrary/OpenVoxb/trunk@59023 30e9dc4a-7611-4fbc-83ba-eecf79b76bd0