echo $this->table->generate($query);
$this->db->select('*')->from('posts'); $query = $this->db->get(); return $query->result();