[ORM] Fix wrong condition for _just_cog_oid. in relation._cog_get_where_inner()