Q:

Parse error: syntax error, unexpected '$query' (T_VARIABLE) in model_role.php on line 10

i tried to debug it but i really don't know what's causing the error. i already traced the missing brackets but i think there's none. so please help!
<?php

class Model_role extends CI_Model {

    public function scalar($user_account, $role){

            $this->db->where('login_id', $this->input->post('idnum'));
            $this->db->select($role);                                                                                                                     z

            $query = $this->db->get($user_account);
            $row = $query->row_array();
            return $row['role'];
        }
    }

?>

A:

It looks like there's a stray z way to the right of $this->db->select($role); Can you search for z in your editor and see if it comes up?

