Php 如何在何处条件下使用alisan coulmn

Php 如何在何处条件下使用alisan coulmn,php,Php,这是我的问题 当我进入查看并在数据表的搜索框中输入值时,会显示此错误 private function _get_datatables_query($postData){ // $this->db->from($this->table); $userType = $this->getUserType('customer'); $this->db->select('CO.*,CI.FirstNa

这是我的问题

当我进入查看并在数据表的搜索框中输入值时,会显示此错误

private function _get_datatables_query($postData){
         
        // $this->db->from($this->table);
        $userType = $this->getUserType('customer');
        $this->db->select('CO.*,CI.FirstName, CI.LastName, M.Email, CI.UserGuid as UserId, SUM(CO.NetAmnt) AS Order_Amount,  CW.WALLET_BALANCE')
            ->from($this->infoTable. ' CI')
            ->join($this->userRolesTable. ' UR', 'UR.UserId = CI.UserGuid','left')
            ->join($this->membershipTable.' M', 'M.UserId = CI.UserGuid','left')
            ->join('cart_orders CO', 'M.UserId = CO.UserGuid','left')
            ->join('cust_wallet CW', 'M.UserId = CW.USER_ID','left')
            ->where(['UR.RoleId'=> $userType])->group_by('M.UserId');
        $i = 0;
        // loop searchable columns 
        foreach($this->column_search as $item){
            // if datatable send POST for search
            if($postData['search']['value']){
                // first loop
                if($i===0){
                    // open bracket
                    $this->db->group_start();
                    $this->db->like($item, $postData['search']['value']);
                }else{
                    
                    $this->db->or_like($item, $postData['search']['value']);
                }
                
                // last loop
                if(count($this->column_search) - 1 == $i){
                    // close bracket
                    $this->db->group_end();
                }
            }
            $i++;
        }
         
        if(isset($postData['order'])){
            $this->db->order_by($this->column_order[$postData['order']['0']['column']], $postData['order']['0']['dir']);
        }else if(isset($this->order)){
            $order = $this->order;
            $this->db->order_by(key($order), $order[key($order)]);
        }
    }

你能用明文加上错误吗?查询太长,否则无法正确调试。