[eluser]citryer[/eluser]
Following used to work in 1.5.x
Code:
//my_model.php
$this->db->select("id, DATE_FORMAT(postdt,'%D %M %Y') as newsdt, title");
$this->db->where('id',$id); // Confirmed value received
$query = $this->db->get('my_news_table');
return $query->row();
Since the upgrade to 1.7.x This now produces following error:
Code:
Fatal error: Call to a member function row() on a non-object in G:\wamp\XXX\YYY\models\my_model.php on line 48
Query by the way works when I remove the Date_Format portion from the select clause.