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 (
    13334, 13328, 13319, 13353, 13380, 13354, 
    13326, 13387, 13335, 13342, 13343, 
    13383, 13368, 13356, 13372, 13349, 
    13379, 13359, 13365, 13399, 13347, 
    13390, 13393, 13391, 13397
  ) 
  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.00098

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "17.51"
    },
    "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": 25,
        "rows_produced_per_join": 4,
        "filtered": "20.00",
        "index_condition": "(`cscartdb`.`cscart_product_prices`.`product_id` in (13334,13328,13319,13353,13380,13354,13326,13387,13335,13342,13343,13383,13368,13356,13372,13349,13379,13359,13365,13399,13347,13390,13393,13391,13397))",
        "cost_info": {
          "read_cost": "17.01",
          "eval_cost": "0.50",
          "prefix_cost": "17.51",
          "data_read_per_join": "119"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`cscartdb`.`cscart_product_prices`.`lower_limit` = 1) and (`cscartdb`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
13319 234.30000000
13326 235.92000000
13328 235.92000000
13334 237.27000000
13335 237.27000000
13342 230.00000000
13343 234.30000000
13347 255.90000000
13349 270.00000000
13353 320.00000000
13354 250.00000000
13356 237.27000000
13359 268.05000000
13365 235.92000000
13368 234.30000000
13372 127.76000000
13379 250.00000000
13380 237.00000000
13383 237.50000000
13387 242.40000000
13390 235.92000000
13391 242.40000000
13393 250.00000000
13397 237.27000000
13399 254.55000000