[eluser]mlinuxgada[/eluser]
Hi,
I have strange behaviour using active records:
Code:
$this->db->distinct();
$this->db->select('date_format(date, \'%Y-%m\') as date_format');
....
It produces the following sql query:
Code:
SELECT DISTINCT date_format(date, `'%Y-%m')` as date_format FROM ...
Where is my mistake ... or it's a bug?