Precedence unknown column when using find_one()
When I run the code below, I get an error saying precedence is an unknown column. Indeed, I did not include the precedence column in my table and I have no intention to. Is there anyway to prevent ordering by precedence? I tried to set the second parameter to an empty string, but still no luck. Also, oddly, when I don't set the return value to array, it returns as an object. Anyone else having this issue?
$envelope = $CI->envelopes_model->find_one(array('reference_number' => $values['reference_number']), '', 'array');
Comments
function _common_query() { parent::_common_query(); $this->db->order_by(''); }