将变量传递给函数不起作用

I have a problem when I try to pass a variable to a function in Codeigniter. The function i have to pass some variables from is this one:

function payment_accepted()
        {
            $this->db->where('id', $this->input->get('orderid'));
            $this->db->limit(1);
            $this->db->update('orders', array('payment_status'=>TRUE, 'transaction_id'=>$this->input->get('txnid'), 'approved'=>TRUE));
            $query = $this->db->get('orders');
            $info = $query->result_array();

            $this->order_success($info[0], array('paymenttype' => $this->input->get('paymenttype'), 'cardno' => $this->input->get('cardno')));
        }

The problem is that the first paramater doesn't work and therefore the order_success function can't send the mail as it should do:

$this->application->email($info['email'], 'Ordre bekræftelse', $message);

I've checked, and the problem is with the $info variable, I just don't know what.

I hope you can help me!