Update avatarquery.php

Credits to McLive
Merge branch 'pr/6'