'SELECT a.articleid, a.categoryid, a.title, a.desc, u.filename FROM '.TABLE_PREFIX.
'_articles a, customavatar u WHERE u.userid = a.userid ORDER BY a.articleid DESC LIMIT 0 , 10'
in that query if it does not find a match for u.userid = a.userid it will not return the result.
however if you do a LEFT JOIN
'SELECT a.articleid, a.categoryid, a.title, a.desc, u.filename FROM '.TABLE_PREFIX.
'_articles a LEFT JOIN customavatar u ON u.userid = a.userid WHERE u.userid = a.userid ORDER BY a.articleid DESC LIMIT 0 , 10'
if there is no avatar, it will return a empty rows if it does not exsist.