On the Admin Side of the component I clicked on the USERS tab and this came up:
I'm assuming that is not what you wanted showing up. How can I fix this and what SHOULD it be showing me?SELECT a.*,f.id as file_id,cc.id as category_id,ua.id AS userid, ua.username AS username, ua.name AS usernameno,uc.name AS editor,fa.countfaid,fn.countfnid
FROM jos_users AS a
LEFT JOIN jos_phocadownload AS f ON f.owner_id = a.id
LEFT JOIN jos_phocadownload_categories AS cc ON cc.id = f.catid
LEFT JOIN jos_users AS ua ON ua.id=f.owner_id
LEFT JOIN jos_users AS uc ON uc.id=f.checked_out
LEFT JOIN (SELECT fa.owner_id, fa.id, count(*) AS countfaid FROM jos_phocadownload AS fa WHERE fa.approved = 1 GROUP BY fa.owner_id) AS fa ON a.id = fa.owner_id
LEFT JOIN (SELECT fn.owner_id, fn.id, count(*) AS countfnid FROM jos_phocadownload AS fn WHERE fn.approved = 0 GROUP BY fn.owner_id) AS fn ON a.id = fn.owner_id
WHERE a.id > 0 AND (fa.countfaid > 0 OR fn.countfnid > 0)
GROUP BY a.id
ORDER BY uc.name asc


