Fix incorrect id_order field

$item is an array where id_order is aliased id.