Your bindings look wrong...
On line 176 of pp_confirm try:
$ConditionalQuery->bindColumn("OrderDeliveryDate", "t", "".WA_getSavedFormValue('CheckoutWizardShipping_Ornament_Ornament','Datapicker') ."", "WA_DEFAULT");
Also, you have a "d" for most of the column types... it should be "s" for string values. "d" is only for numbers.