[eluser]Aken[/eluser]
Check your SQL query by using $this->db->last_query() to show the last SQL command you used, paste it into phpMyAdmin or your appropriate database manager and see what errors it returns.
We can't help you without knowing at least an exact error that you're getting. So start there.