Select id
Do not loop by two select