插入数据时发生Phalcon PHP错误(从_UNIXTIME编辑后)

插入数据时发生Phalcon PHP错误(从_UNIXTIME编辑后),php,mysql,phalcon,Php,Mysql,Phalcon,我正在使用Phalcon在php上编写一个restful api。作为DB,我正在使用MySQL。 当我从UNIXTIME()添加时,我开始出错 $query = "INSERT INTO readings (sensor_id, value, error, timestamp) VALUES (:sensor_id:, :value:, :error:, FROM_UNIXTIME( :timestamp: ));"; $status = $app->modelsMan

我正在使用Phalcon在php上编写一个restful api。作为DB,我正在使用MySQL。 当我从UNIXTIME()添加
时,我开始出错

    $query = "INSERT INTO readings (sensor_id, value, error, timestamp) VALUES (:sensor_id:, :value:, :error:, FROM_UNIXTIME( :timestamp: ));";

    $status = $app->modelsManager->executeQuery($query, array(
        'sensor_id' =>$reading->sensor_id,
        'value' => $reading->value,
        'error' => $reading->error,
        'timestamp' => $reading->timestamp
    ));
错误:

[Sun Jul 19 17:10:19.895081 2015][:error][pid 24057][client 46.39.49.135:49183]PHP致命错误:未捕获异常“Phalcon\Mvc\Model\exception”,解析时显示消息“扫描错误在“”之前”:插入到读数(传感器id,值,错误,时间戳)值(:传感器id:,:值:,:错误:,FROM_UNIXTIME(:时间戳));(127)'in/var/www/rest.technical-craft.ru/public/index.php:42\n堆栈跟踪:\n#0[内部函数]:Phalcon\Mvc\Model\Query->parse()\n#1[内部函数]:Phalcon\Mvc\Model\Query->execute()\n#2/var/www/rest.technical-craft.ru/public/index.php(42):Phalcon\Mvc\Model\Manager->->executeQuery('INSERT-INTO-rea…',数组)\n#3[内部函数]:{closure}()\n#4/var/www/rest.technical-craft.ru/public/index.php(67):Phalcon\Mvc\Micro->handle()\n#5{main}\n在第42行抛出/var/www/rest.technical-craft.ru/public/index.php