SELECT 
  `product_id` 
FROM 
  cscart_products 
WHERE 
  `parent_product_id` = '31872'

Query time 0.00316

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_products",
          "access_type": "ref",
          "possible_keys": ["idx_parent_product_id"],
          "key": "idx_parent_product_id",
          "key_length": "4",
          "used_key_parts": ["parent_product_id"],
          "ref": ["const"],
          "rows": 22,
          "filtered": 100
        }
      }
    ]
  }
}

Result

product_id
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989