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 (
    231, 232, 233, 234, 235, 236, 237, 238, 
    239, 78, 79, 80, 81, 82, 83, 84, 85, 86, 
    87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 
    97, 100, 101, 102
  ) 
  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.00088

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 37,
          "filtered": 45.91368103,
          "index_condition": "cscart_product_prices.product_id in (231,232,233,234,235,236,237,238,239,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,100,101,102)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
78 4000.00000000
79 3840.00000000
80 2200.00000000
81 1980.00000000
82 799.60000000
83 799.60000000
84 799.60000000
85 799.60000000
86 14360.00000000
87 799.60000000
88 1599.60000000
89 799.60000000
90 799.60000000
91 428000.00000000
92 129000.00000000
93 799.60000000
94 2399.60000000
95 799.60000000
96 3999.60000000
97 599.60000000
100 908.00000000
101 3610.80000000
102 11800.00000000
231 1275.00000000
232 1275.00000000
233 1919.60000000
234 2399.60000000
235 3199.60000000
236 5499.65000000
237 11999.60000000
238 19999.60000000
239 20399.60000000