SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    1839, 1701, 1675, 1697, 1979, 1837, 1707, 
    1708, 1792, 1838, 1676, 1704, 1699, 
    1700, 1840, 1835, 1880, 1703, 1793, 
    1836, 1831, 1829, 1706, 1827, 1705, 
    1886, 1715, 1670, 1716, 1832, 1833, 
    1834
  )

Query time 0.00044

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": 55,
      "filtered": 100,
      "attached_condition": "cscart_categories.parent_id in (1839,1701,1675,1697,1979,1837,1707,1708,1792,1838,1676,1704,1699,1700,1840,1835,1880,1703,1793,1836,1831,1829,1706,1827,1705,1886,1715,1670,1716,1832,1833,1834)",
      "using_index": true
    }
  }
}

Result

category_id parent_id
1675 1670
1676 1670
1839 1670
1840 1670
1841 1670
1700 1699
1701 1699
1703 1699
1704 1699
1705 1699
1829 1699
1707 1706
1708 1706
1835 1706
1836 1706
1837 1715
1838 1715
1671 1792
1793 1792
1827 1792
1828 1792
1880 1792
1886 1792
1979 1792
1697 1831
1716 1831
1832 1831
1833 1831
1834 1831