You many not have permissions on a particular table that is in the one query but not the other.