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 (
    2187, 2260, 1861, 1747, 1780, 1797, 1823, 
    1782, 1798, 1772, 1755, 2028, 2118, 
    2116, 2117, 1966, 1967, 1965, 2026, 
    2027, 2131, 1938, 2025, 2062, 2369, 
    1856, 2205, 1846, 1885, 1873, 1824, 
    1869, 2004, 2140, 2139, 2141, 2150, 
    1935, 2003, 2007, 2076, 1867, 2029, 
    2361, 1825, 1826, 2390, 2391, 2270, 
    2272, 2273, 2308, 2378, 2220, 2022, 
    2015, 1980, 1976, 1927, 2058, 1975, 
    1964, 2136, 1749, 1973, 2339, 1974, 
    2354, 1972, 2352, 2030, 2269, 2289, 
    2167, 2128, 1968, 1969, 2192, 2297, 
    2037
  ) 
  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.00115

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "60.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": 90,
        "rows_produced_per_join": 17,
        "filtered": "19.97",
        "index_condition": "(`cscartdevel`.`cscart_product_prices`.`product_id` in (2187,2260,1861,1747,1780,1797,1823,1782,1798,1772,1755,2028,2118,2116,2117,1966,1967,1965,2026,2027,2131,1938,2025,2062,2369,1856,2205,1846,1885,1873,1824,1869,2004,2140,2139,2141,2150,1935,2003,2007,2076,1867,2029,2361,1825,1826,2390,2391,2270,2272,2273,2308,2378,2220,2022,2015,1980,1976,1927,2058,1975,1964,2136,1749,1973,2339,1974,2354,1972,2352,2030,2269,2289,2167,2128,1968,1969,2192,2297,2037))",
        "cost_info": {
          "read_cost": "58.71",
          "eval_cost": "1.80",
          "prefix_cost": "60.51",
          "data_read_per_join": "431"
        },
        "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
1747 18.26000000
1749 13.84000000
1755 7.79000000
1772 8.85000000
1780 11.29000000
1782 15.82000000
1797 18.82000000
1798 15.49000000
1823 4.86000000
1824 10.63000000
1825 14.94000000
1826 41.17000000
1846 10.30000000
1856 11.13000000
1861 10.07000000
1867 13.91000000
1869 30.99000000
1873 81.90000000
1885 30.43000000
1927 8.33000000
1935 31.69000000
1938 16.89000000
1964 6.69000000
1965 10.97000000
1966 10.97000000
1967 10.44000000
1968 13.60000000
1969 13.60000000
1972 3.35000000
1973 3.64000000
1974 3.64000000
1975 7.51000000
1976 7.51000000
1980 8.46000000
2003 41.07000000
2004 35.79000000
2007 37.41000000
2015 9.83000000
2022 9.83000000
2025 19.66000000
2026 16.55000000
2027 14.33000000
2028 16.55000000
2029 15.09000000
2030 16.15000000
2037 18.14000000
2058 9.27000000
2062 25.23000000
2076 37.41000000
2116 8.27000000
2117 8.27000000
2118 8.09000000
2128 19.24000000
2131 12.45000000
2136 16.55000000
2139 150.96000000
2140 88.89000000
2141 43.13000000
2150 61.79000000
2167 25.78000000
2187 48.23000000
2192 8.92000000
2205 30.18000000
2220 9.72000000
2260 13.50000000
2269 8.94000000
2270 4.46000000
2272 4.46000000
2273 4.46000000
2289 14.92000000
2297 32.09000000
2308 20.24000000
2339 3.64000000
2352 67.36000000
2354 3.64000000
2361 11.98000000
2369 24.23000000
2378 9.83000000
2390 21.37000000
2391 18.11000000