You should still probably update the line:
$ConditionalQuery->bindColumn("OrderID", "d", "segufix_OrderID", "WA_DEFAULT");
to:
$ConditionalQuery->bindColumn("OrderID", "d", "". ($_SESSION["segufix_OrderID"]) ."", "WA_DEFAULT");
The error is probably still there but the page redirects before you see it.