[eluser]TheFuzzy0ne[/eluser]
The syntax for your select statement is incorrect.
Code:
$this->db->select('Detail','Pro_Id'); # Two parameters.
# Should be...
$this->db->select('Detail, Pro_Id'); # One parameter.
The second parameter can be set to FALSE, which prevents the string from being escaped (it's TRUE by default), but you don't need that for your query.
The select statement as it was was only selecting 'Detail', not 'Pro_Id'.
Another way to achieve the same thing:
Code:
$this->db->select('Detail');
$this->db->select('Pro_Id');
Sorry I didn't notice this earlier.