[eluser]Ace_ov_Spade[/eluser]
today I found the error while using DISTINCT keyword in db->select() function. my code is something like:
Code:
$this->db->select('DISTINCT `name`');
$Q = $this->db->get('vehicle',$condition);
I got the error message like:
A Database Error Occurred
Error Number: 1054
Unknown column 'DISTINCT' in 'field list'
SELECT `DISTINCT` `name` FROM (`vehicle`)
my question is: is there anyway to use select distinct field name using db_select() method? or I have to use the db->query() method?