[eluser]cboyd[/eluser]
I am having trouble with the order_by argument for the Active Records.
I am using:
$this->module_m->order_by('fieldname', 'desc');
as per the documentation, but it is resulting in:
SELECT `id`, `fieldname` FROM `default_tablename` ORDER BY "fieldname", "desc" ASC
rather than:
SELECT `id`, `fieldname` FROM `default_tablename` ORDER BY "fieldname desc"
Any words of wisdom?
Thanks!