This will take some SQL knowledge and PHP (and vBulletin) knowledge to "fix". You will need to find the big query where the information is fetched, and join the avatar information onto it. See what happens inside the functions you have used to determine what you need to fetch.