in the store order details to store the photo info, you have the order id set as the primary key column, you need to set another column as the key column, then bind the order id column to the OrderID session variable created by the store order summary behavior for the orders table.