SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    257, 251, 214, 1242, 1780, 209, 1243, 
    210, 1782, 215, 216, 211, 1244, 168, 
    1245, 167, 1241, 1779, 256, 201, 262, 
    259, 278, 268, 260, 267, 433, 1781, 1783
  )

Query time 0.00067

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": 63,
      "filtered": 100,
      "index_condition": "cscart_categories.parent_id in (257,251,214,1242,1780,209,1243,210,1782,215,216,211,1244,168,1245,167,1241,1779,256,201,262,259,278,268,260,267,433,1781,1783)"
    }
  }
}

Result

category_id parent_id
257 167
214 167
215 167
216 167
217 167
218 167
256 167
258 167
259 167
260 167
267 167
433 167
251 168
207 168
209 168
210 168
211 168
212 168
213 168
233 168
262 168
278 168
268 168
1242 1241
1243 1241
1244 1241
1245 1241
1780 1779
1782 1779
1781 1779
1783 1779