SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(20, 21, 18, 19, 16, 17, 22)

Query time 0.00020

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": ["parent"],
      "key": "parent",
      "key_length": "3",
      "used_key_parts": ["parent_id"],
      "rows": 51,
      "filtered": 100,
      "attached_condition": "cscart_categories.parent_id in (20,21,18,19,16,17,22)",
      "using_index": true
    }
  }
}

Result

category_id parent_id
143 16
144 16
145 16
146 16
147 16
148 16
149 16
150 16
151 16
152 16
153 16
154 16
155 16
156 16
157 16
158 17
159 17
160 17
161 17
162 17
163 17
164 17
165 18
166 18
167 18
168 18
169 18
170 18
171 18
172 18
173 18
174 18
175 18
176 19
177 19
178 19
179 19
180 19
181 20
182 20
183 20
184 20
185 20
186 20
187 20
188 21
189 21
190 22
191 22
192 22
193 22