Hi guys,
I have some problems with custom model while implementing filter function.
I went through the forum and find about this problem, and I find a solution about the filtering, by adding something like this:
function get_total_results() { $this->db->from($this->table_name); $this->db->join(); return $this->db->count_all_results(); }
However, this solution works well in general multi join table that has different field name, but whenever I met with two join table that has same field name, it will occur error:
Column 'content' in where clause is ambiguous
I realized this problem occured since I've joined two tables that has field name 'content' separately, so when I do the filter function for the column 'content', it will say that it ambigous.
It's is there any implementable method to handle with this problem?
I've tried so many method to solved this problem, but nothing worked until now.
Thousands of thanks for you all~