[eluser]darkhouse[/eluser]
I can't see a way, and I'm betting it's not possible, to do a subquery using the active record functions, aside from just doing this:
Code:
$this->db->query("SELECT COUNT(*) AS total_count FROM (SELECT MAX(last_updated) FROM table) AS counter");
I was hoping to be able to use things like $this->db->where(), etc, as I have some conditions I need to check that will affect how I write the SQL.
Any suggestions, or should I just build my SQL string and use the query method?