$result = dbquery("SELECT * FROM ".$db_prefix."downloads
LEFT JOIN ".$db_prefix."users ON download_author = user_id
WHERE download_cat='$cat_id' ORDER BY ".$cdata['download_cat_sorting']." LIMIT $rowstart,15");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads
LEFT JOIN ".$db_prefix."users ON download_author = user_id
WHERE download_cat='$cat_id' ORDER BY download_datestamp LIMIT $rowstart,15");