Back to passing ids, that sub select hurts mysql