Please next time you post add the version of CodeIgniter that you are using.
For version 3.1.5 you are calling it wrong.
This function will also add a table prefix to your table, assuming you have a prefix specified in your database config file. To enable the prefixing set TRUE (boolean) via the second parameter:
PHP Code:
$this->db->protect_identifiers('table_name', TRUE);
So if you do not need the database table prefix, just pass it the table name.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )