Pass link ids to update query as positioned parameters