SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    1975, 1984, 1993, 2007, 2020, 2045, 2049, 
    1143, 2065, 2125, 2126, 2140, 2167, 
    2179, 2189, 2205, 2219, 2226, 1921, 
    2233, 2291, 2295, 2316
  ) 
  AND category_id != 414

Query time 0.00074

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "57.51"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 115,
      "rows_produced_per_join": 115,
      "filtered": "100.00",
      "index_condition": "(`s2cart`.`cscart_categories`.`parent_id` in (1975,1984,1993,2007,2020,2045,2049,1143,2065,2125,2126,2140,2167,2179,2189,2205,2219,2226,1921,2233,2291,2295,2316))",
      "cost_info": {
        "read_cost": "46.01",
        "eval_cost": "11.50",
        "prefix_cost": "57.51",
        "data_read_per_join": "406K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`s2cart`.`cscart_categories`.`category_id` <> 414)"
    }
  }
}

Result

category_id parent_id
1144 1143
1146 1143
1147 1143
1148 1143
1149 1143
1150 1143
1158 1143
1159 1143
1160 1143
1178 1143
1181 1143
1182 1143
1185 1143
1186 1143
1189 1143
1190 1143
1191 1143
1976 1975
1977 1975
1978 1975
1979 1975
1980 1975
1985 1984
1986 1984
1987 1984
1988 1984
1989 1984
1990 1984
1991 1984
1992 1984
2021 2020
2022 2020
2023 2020
2024 2020
2025 2020
2026 2020
2027 2020
2046 2045
2050 2049
2051 2049
2052 2049
2053 2049
2054 2049
2055 2049
2056 2049
2057 2049
2058 2049
2059 2049
2060 2049
2061 2049
2066 2065
2067 2065
2068 2065
2069 2065
2127 2126
2128 2126
2141 2140
2142 2140
2180 2179
2181 2179
2182 2179
2183 2179
2184 2179
2185 2179
2186 2179
2187 2179
2188 2179
2190 2189
2191 2189
2192 2189
2193 2189
2206 2205
2207 2205
2208 2205
2209 2205
2210 2205
2211 2205
2212 2205
2213 2205
2214 2205
2215 2205
2216 2205
2217 2205
2220 2219
2221 2219
2222 2219
2223 2219
2224 2219
2225 2219
2227 2226
2228 2226
2229 2226
2230 2226
2231 2226
2232 2226
2234 2233
2235 2233
2236 2233
2237 2233
2238 2233
2239 2233
2240 2233
2241 2233
2242 2233
2243 2233
2244 2233
2245 2233
2292 2291
2293 2291
2296 2295
2297 2295
2298 2295
2299 2295
2317 2316
2318 2316
2319 2316