Wow, weird bug with select statements that parse but aren't right