In limit_upd.upd find:
PHP Code:
while (list($id,$url,$days_db,$links,$depth,) = mysql_fetch_row($result_id)) {
And replace with:
PHP Code:
while (list($id,$url,$days_db,$links,$depth) = mysql_fetch_row($result_id)) {
Note the removal of the straggling comma after the $depth variable.