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 (
    1142, 2380, 1941, 2052, 1139, 2055, 1960, 
    1926, 1990, 2341, 2053, 1937, 1148, 
    1149, 1147, 1150, 1145, 1146, 2382, 
    1152, 1151, 1156, 1143, 1157, 1144, 
    2011, 1919, 1922, 1942, 1923, 1933, 
    1945, 1946, 1153, 1154, 1155, 2376, 
    2036, 2057, 2091, 1959, 1981, 2137, 
    2340
  ) 
  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.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "30.81"
    },
    "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": 44,
        "rows_produced_per_join": 8,
        "filtered": "19.99",
        "index_condition": "(`cscartdevel`.`cscart_product_prices`.`product_id` in (1142,2380,1941,2052,1139,2055,1960,1926,1990,2341,2053,1937,1148,1149,1147,1150,1145,1146,2382,1152,1151,1156,1143,1157,1144,2011,1919,1922,1942,1923,1933,1945,1946,1153,1154,1155,2376,2036,2057,2091,1959,1981,2137,2340))",
        "cost_info": {
          "read_cost": "29.93",
          "eval_cost": "0.88",
          "prefix_cost": "30.81",
          "data_read_per_join": "211"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`cscartdevel`.`cscart_product_prices`.`lower_limit` = 1) and (`cscartdevel`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
1139 37.00000000
1142 35.00000000
1143 65.00000000
1144 65.00000000
1145 59.00000000
1146 22.00000000
1147 22.00000000
1148 22.00000000
1149 22.00000000
1150 22.00000000
1151 37.00000000
1152 37.00000000
1153 37.00000000
1154 37.00000000
1155 37.00000000
1156 65.00000000
1157 65.00000000
1919 12.15000000
1922 12.15000000
1923 12.15000000
1926 17.72000000
1933 11.72000000
1937 17.07000000
1941 35.15000000
1942 12.15000000
1945 10.86000000
1946 10.86000000
1959 24.41000000
1960 27.11000000
1981 15.79000000
1990 25.58000000
2011 12.15000000
2036 13.45000000
2052 28.75000000
2053 14.78000000
2055 24.05000000
2057 16.84000000
2091 10.91000000
2137 22.42000000
2340 36.73000000
2341 29.63000000
2376 7.10000000
2380 38.72000000
2382 10.50000000