Hi,
This can happen if the sub layer does not support Query (or if it's a raster layer). Please check in the service definition for this sub layer map service to see if it's supported. If it doesn't then this is the reason, if it does then we may have a problem so please post more information about your service
Mike