I've set an attribute 'Form #' which the custom can enter (set the value) in a text box when ordering.
I'd like to be able to show this value in the quick re-order instead of the current item name.

I know I need to change things in the following places;

order_history.php:
$orders_history_query = ***

and tpl_order_history.php:
$customer_orders[$i][' *** ']

how do I get the value for the new attribute (if it exist) from the db?