We usually use a WHERE IN condition to avoid this kind of loops on select statements, but here the condition is a MATCH AGAINST.