#SELECT * FROM `organization` where LastUpdate is not null order by lastUpdate DESC; #select * from current_devices where org_id_ma = 1866 #select * from Machine_Archive where org_id_ma = 1866; SELECT * FROM `organization` where LastUpdate is not null and org_type_id != 7 and status = 'Active Client' order by org_name;