I haven't been able to figure out why, or if this is exactly it, but it seems with tinyint values for my database, the make_db_value calls, puts '' around them. I was doing Custom view as, and instead of getting 2 for the value, I was getting '2'. I wish I could provide more detailed information, but I haven't yet been able to decode the internal type system in the PHPRunner code.