[eluser]OverZealous[/eluser]
Well, I'm sorry I can't figure it out! I don't know what else to try. I'll keep thinking about it.
If you are getting strings instead of ints, it's the DB driver or PHP. I have that problem with Postgres for ids (and it can throw errors when saving them back later). I haven't taken the time to see if the bug is possibly in CodeIgniter (or the PHP v5.2.10 I'm using), but it is annoying. What little research I've done makes me think it is just PHP. 8-(