SELECT name from machinet_mgmt.devices where company_id='1' and status='ng' and alert='1'done