result = dbquery("SELECT td.*, tu.user_id,user_name FROM ".$db_prefix."downloads td
LEFT JOIN ".$db_prefix."users tu ON tu.user_id=td.download_author
WHERE td.download_cat='$cat_id' AND td.download_status!='inactive' ORDER BY ".$cdata['download_cat_sorting']." LIMIT $rowstart,25");