错误信息:SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'where clause'
所在文件:/data1/vhosts/caijing.leju.com/htdocs/framework/db/mysql.php:38

/data1/vhosts/caijing.leju.com/htdocs/framework/db/mysql.php(38)

35    protected function doQuery($sql, $param=array(), $all=false)
36    {
37        !$all && !stristr($sql, 'LIMIT') && $sql .= ' LIMIT 1';
38        if(!$this->_statement = $this->_pdo->prepare($sql))
39            return false;
40
41        $sOK = $param ? $this->_statement->execute($param) : $this->_statement->execute();

Stack Trace

#3
+
-
/data1/vhosts/caijing.leju.com/htdocs/app/news/model/news.php(879):
Leb_Db_Abstract->queryAll("SELECT summary,type,id as news_i...")
876
877                $sql = "SELECT summary,type,id as news_id,title,stname,company_stock_code,cover,company_stock_name FROM `finance_clusters` WHERE `id` in(".$newsId.") AND is_deleted = 0";
878                $companyModel= Slae::app()->model('company', 'company');
879                $finance_data = $companyModel->getDbConnect(false)->queryAll($sql);
880
881                if (!empty($finance_data))
882                {
#4
+
-
/data1/vhosts/caijing.leju.com/htdocs/app/news/model/news.php(149):
News->getRelevantInfo("18131,18131,3717,19612,21000","undefined","1467,10009737,58,10033956,100137...","18131")
146            if($_GET['cs']=='002'){
147                pr($return);//exit;
148            }
149            $info = $this->getRelevantInfo($return['company_id'], $return['person_id'], $return['tags_id'], $relCompanyId);
150            $bindCid = explode(',', $relCompanyId);
151            $tmpStock = array_column($info['stock'], NULL, 'company_id');
152            //新闻取前三家公司做股票数据
#5
+
-
/data1/vhosts/caijing.leju.com/htdocs/app/news/news.php(861):
News->getNewsById("6724123702163979522")
858		}
859
860        //获取新闻内容
861        $news = $this->_newsModel->getNewsById($newsid);
862        if($_GET['dd_see'] == 'time'){
863            $end1 = microtime(true);
864            echo '一次获取新闻:'.($end1-$star).' s';
#12
+
-
/data1/vhosts/caijing.leju.com/htdocs/index.php(31):
Leb_Plugin_Abstract->run()
28error_reporting(E_ERROR&~E_NOTICE);
29//请求->路由->过滤->分发->响应
30$controller = Leb_Controller::getInstance();
31$controller->run();
2024-12-23 15:25:51 nginx/1.10.0 PHP/5.5.10 18.117.170.80->10.204.15.46(m.lejucaijing.com) 执行时间:0.16217秒 内存开销:3655632Byte 内存峰值:15990784Byte
Copyright © 1996-2013 LEJU Corporation, All Rights Reserved Slae Framework / 1.0.0