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 (
    375, 338, 376, 397, 194, 245, 424, 329, 
    242, 243, 261, 191, 141, 142, 170, 144, 
    372, 145, 371, 14, 323, 324, 116, 343
  ) 
  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.00014

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "57.61"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.95",
        "index_condition": "(`admin_nbua`.`cscart_product_prices`.`product_id` in (375,338,376,397,194,245,424,329,242,243,261,191,141,142,170,144,372,145,371,14,323,324,116,343))",
        "cost_info": {
          "read_cost": "56.65",
          "eval_cost": "0.96",
          "prefix_cost": "57.61",
          "data_read_per_join": "114"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`admin_nbua`.`cscart_product_prices`.`lower_limit` = 1) and (`admin_nbua`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
14 1850.00000000
116 3390.00000000
141 3350.00000000
142 3350.00000000
144 1790.00000000
145 1790.00000000
170 1995.00000000
191 4490.00000000
194 1200.00000000
242 2790.00000000
243 2790.00000000
245 6800.00000000
261 1740.00000000
323 2450.00000000
324 3050.00000000
329 2790.00000000
338 4690.00000000
343 1150.00000000
371 1790.00000000
372 1790.00000000
375 6490.00000000
376 7850.00000000
397 795.00000000
424 2790.00000000