SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    283, 216, 204, 242, 229, 222, 251, 210, 
    166, 212, 224, 246, 167, 230, 220, 252, 
    211, 213, 243, 247, 209, 175, 217, 203, 
    225, 215, 221, 214, 231, 174, 208, 249, 
    253, 226, 218, 223, 244, 232, 219, 227, 
    234, 248, 228, 241, 245, 250, 267, 281, 
    284, 172, 201, 291
  ) 
  AND category_id != 264

Query time 0.00037

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.014713595,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "index",
          "possible_keys": ["PRIMARY", "parent", "p_category_id"],
          "key": "parent",
          "key_length": "3",
          "used_key_parts": ["parent_id"],
          "loops": 1,
          "rows": 55,
          "cost": 0.014713595,
          "filtered": 100,
          "attached_condition": "cscart_categories.parent_id in (283,216,204,242,229,222,251,210,166,212,224,246,167,230,220,252,211,213,243,247,209,175,217,203,225,215,221,214,231,174,208,249,253,226,218,223,244,232,219,227,234,248,228,241,245,250,267,281,284,172,201,291) and cscart_categories.category_id <> 264",
          "using_index": true
        }
      }
    ]
  }
}

Result

category_id parent_id
174 166
175 166
234 166
172 167
201 167
204 203
211 203
215 203
208 204
209 204
210 204
212 211
213 211
214 211
216 215
217 215
218 215
220 219
221 219
222 219
224 223
225 223
226 223
227 223
229 228
230 228
231 228
232 228
242 241
243 241
244 241
246 245
247 245
248 245
249 245
251 250
252 250
253 250