我可以像PHP代码一样在页面节点中执行此代码,但是当我尝试在Drupal 7规则中运行自定义php操作时,我的网站崩溃了(白屏)。怎么了?
$OrderID_miquel="40";
$query = db_query('Select MAX(field_delivery_package_numerical_value) AS MaxDelivery , order_id , nid FROM {field_data_field_delivery_package_numerical} , {uc_order_products} WHERE order_id = :order_id' , array( ':order_id' => $OrderID_miquel));