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 (
    1438105, 1199097, 1128299, 1346803, 
    2055715, 525870, 1108339, 1029075, 
    1718556, 1025110, 1902970, 1028783, 
    1128294, 1025083, 1029138, 1129606
  ) 
  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.00180

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "32.45"
    },
    "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": 32,
        "rows_produced_per_join": 32,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "29.25",
          "eval_cost": "3.20",
          "prefix_cost": "32.45",
          "data_read_per_join": "768"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`maniamall_cscart`.`cscart_product_prices`.`lower_limit` = 1) and (`maniamall_cscart`.`cscart_product_prices`.`product_id` in (1438105,1199097,1128299,1346803,2055715,525870,1108339,1029075,1718556,1025110,1902970,1028783,1128294,1025083,1029138,1129606)) and (`maniamall_cscart`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
525870 43.740000
1025083 23.200000
1025110 31.250000
1028783 18.800000
1029075 24.440000
1029138 15.750000
1108339 169.990000
1128294 257.490000
1128299 257.490000
1129606 257.490000
1199097 71.240000
1346803 71.240000
1438105 34.990000
1718556 137.490000
1902970 149.990000
2055715 169.990000