fixed comments SQL AND is_allowed = 1