Everything else seems to be working except for this bit. I don't know enough about sql to figure out what's happening, though...