Update avatarquery.php

fixed errormessages