[eluser]mrahman[/eluser]
i searched the forum and this question is the same as mine, plus i'm using dbprefixes (i.e a prefix to prepend to tables automatically), so i cannot hardcode the
tablename.field
also, it would be easy to use $this->db->distinct(); and it would be no problem at all. the problem is I cannot find a function in active record that can do count(query) ...
and NOT count_all(table)!!
is there one? anybody?
edit:
what i need to get is the count itself, the number of records. so here my count is not conditional but an output