SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    431070, 431433, 431397, 431370, 430783, 
    430775, 431432, 431286, 431306, 431490, 
    431268, 431493, 431398, 431444, 431386, 
    431305, 430763, 431255, 430967, 431254, 
    431399, 431484, 435512, 430776, 430784, 
    431016, 431173, 431216, 431318, 431417, 
    431371, 431416, 435513, 430729, 431272, 
    431319, 431372, 431461, 431373, 431271, 
    435515, 435514, 431267, 431269, 435516, 
    431270, 387051, 435517, 435518, 432250
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.00212

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "140.16"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "usergroup",
        "used_key_parts": [
          "product_id",
          "usergroup_id",
          "lower_limit"
        ],
        "key_length": "9",
        "rows_examined_per_scan": 100,
        "rows_produced_per_join": 100,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "120.16",
          "eval_cost": "20.00",
          "prefix_cost": "140.16",
          "data_read_per_join": "6K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`webmarco`.`cscart_product_prices`.`lower_limit` = 1) and (`webmarco`.`cscart_product_prices`.`product_id` in (431070,431433,431397,431370,430783,430775,431432,431286,431306,431490,431268,431493,431398,431444,431386,431305,430763,431255,430967,431254,431399,431484,435512,430776,430784,431016,431173,431216,431318,431417,431371,431416,435513,430729,431272,431319,431372,431461,431373,431271,435515,435514,431267,431269,435516,431270,387051,435517,435518,432250)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
387051 0.00000000
430729 31.50000000
430763 34.50000000
430775 34.50000000
430776 34.50000000
430783 34.50000000
430784 34.50000000
430967 31.50000000
431016 31.50000000
431070 29.90000000
431173 26.90000000
431216 29.90000000
431254 36.50000000
431255 36.50000000
431267 36.50000000
431268 36.50000000
431269 36.50000000
431270 36.50000000
431271 36.50000000
431272 36.50000000
431286 36.50000000
431305 45.50000000
431306 45.50000000
431318 49.90000000
431319 49.90000000
431370 49.90000000
431371 49.90000000
431372 49.90000000
431373 45.50000000
431386 45.50000000
431397 49.90000000
431398 49.90000000
431399 49.90000000
431416 49.90000000
431417 58.90000000
431432 34.50000000
431433 34.50000000
431444 34.50000000
431461 31.50000000
431484 34.50000000
431490 34.50000000
431493 34.50000000
432250 19.00000000
435512 0.00000000
435513 0.00000000
435514 0.00000000
435515 0.00000000
435516 0.00000000
435517 0.00000000
435518 0.00000000