SQL: SELECT id, sid, category FROM categories WHERE sid IS NULL OR id = Hardware ORDER BY id, sid