Código HTML:
$query_prod = "select title, value from orders_total where orders_id='".$_POST["ORDERID"]."' and class='ot_shipping' and class='ot_surcharge'";
la sentencia sql esta bien?, el campo "class" puede valer "ot_shipping" y "ot_surcharge" a la vez?.