" set l.timesheet_id = ".$mdb2->quote($timesheet_id).
" where l.id in(".join(', ', $time_log_ids).") and l.user_id = $user_id and l.group_id = $group_id and l.org_id = $org_id";
$affected = $mdb2->exec($sql);
" set l.timesheet_id = ".$mdb2->quote($timesheet_id).
" where l.id in(".join(', ', $time_log_ids).") and l.user_id = $user_id and l.group_id = $group_id and l.org_id = $org_id";
$affected = $mdb2->exec($sql);