SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    1631, 1630, 1632, 1633, 1634, 1638, 1635, 
    1636, 1637, 1639, 1640
  ) 
  AND category_id != 264

Query time 0.00016

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.01363794,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "parent", "p_category_id"],
          "key": "parent",
          "key_length": "3",
          "used_key_parts": ["parent_id"],
          "loops": 1,
          "rows": 20,
          "cost": 0.01363794,
          "filtered": 100,
          "attached_condition": "cscart_categories.parent_id in (1631,1630,1632,1633,1634,1638,1635,1636,1637,1639,1640) and cscart_categories.category_id <> 264",
          "using_index": true
        }
      }
    ]
  }
}

Result

category_id parent_id
1631 1630
1632 1630
1633 1630
1634 1630
1635 1630
1636 1630
1637 1630
1638 1630
1639 1630
1640 1630