Using the _remap() function to separate your business logic from your actual page methods
http://www.codebyjeff.com/blog/2012/11/ci-_remap-function-the-friend-you-never-knew-you-had
Code By Jeff
Mahana Messaging Library
Problem with your query? Did you run
$this->db->last_query();
before you came to the forums for help?