这是我的查询,在开发模式下一切正常,但在生产中会出错。
<?php
$sql = "INSERT INTO `order_utm` VALUES('',:order_id,:utm_source,:utm_campaign,:utm_medium,:tim)";
$result = $this->query($sql, 'insert', array(
'order_id' => $trans_id,
'utm_source' => $utm_source,
'utm_campaign' => $utm_campaign,
'utm_medium' => $utm_medium,
'tim' => time()
));