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 (
    49398, 49663, 49400, 49399, 49540, 49503, 
    49501, 49502, 49550, 49383, 49541, 
    49543, 49542, 49504, 49547, 49800, 
    49664, 49551, 49666, 49661, 49549, 
    49665, 49604, 49662, 49548, 49785, 
    50235, 50218, 50234, 49788
  ) 
  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.08390

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "lower_limit",
              "key_length": "3",
              "used_key_parts": ["lower_limit"],
              "ref": ["const"],
              "rows": 25327,
              "filtered": 14.20454025,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (49398,49663,49400,49399,49540,49503,49501,49502,49550,49383,49541,49543,49542,49504,49547,49800,49664,49551,49666,49661,49549,49665,49604,49662,49548,49785,50235,50218,50234,49788) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
49383 690000.0000
49398 590000.0000
49399 590000.0000
49400 590000.0000
49501 690000.0000
49502 690000.0000
49503 690000.0000
49504 690000.0000
49540 690000.0000
49541 690000.0000
49542 690000.0000
49543 690000.0000
49547 590000.0000
49548 590000.0000
49549 590000.0000
49550 590000.0000
49551 590000.0000
49604 590000.0000
49661 590000.0000
49662 590000.0000
49663 590000.0000
49664 590000.0000
49665 590000.0000
49666 590000.0000
49785 290000.0000
49788 290000.0000
49800 250000.0000
50218 640000.0000
50234 1200000.0000
50235 1200000.0000