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 (
    25318, 49949, 49950, 49951, 49952, 49953, 
    49954, 49955, 49956, 49957, 49958, 
    49959, 49960, 49961, 49962, 49963, 
    49964, 49965, 49966, 49967, 49968, 
    49969, 49970, 49971, 49972, 49973, 
    49974, 49975, 49976, 49977, 49978, 
    49979, 49980, 49981, 49982, 49983, 
    49984, 49985, 49986, 49987, 49988, 
    49989, 49990, 49991, 49992, 49993, 
    49994, 49995, 49996, 49997, 49998, 
    49999, 50000, 50001, 50002, 50003, 
    50004, 50005, 50006, 50007, 50008, 
    50009, 50010, 50011, 50012, 50013, 
    50014, 50015, 50016, 50017, 50018, 
    50019, 50020, 50021, 50022, 50023, 
    50024, 50025, 50026, 50027, 50028, 
    50029, 50030, 50031, 50032, 50033, 
    50034, 50035, 50036, 50037
  ) 
  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.07463

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": 100,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (25318,49949,49950,49951,49952,49953,49954,49955,49956,49957,49958,49959,49960,49961,49962,49963,49964,49965,49966,49967,49968,49969,49970,49971,49972,49973,49974,49975,49976,49977,49978,49979,49980,49981,49982,49983,49984,49985,49986,49987,49988,49989,49990,49991,49992,49993,49994,49995,49996,49997,49998,49999,50000,50001,50002,50003,50004,50005,50006,50007,50008,50009,50010,50011,50012,50013,50014,50015,50016,50017,50018,50019,50020,50021,50022,50023,50024,50025,50026,50027,50028,50029,50030,50031,50032,50033,50034,50035,50036,50037) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
25318 640000.0000
49949 640000.0000
49950 640000.0000
49951 640000.0000
49952 640000.0000
49953 640000.0000
49954 640000.0000
49955 640000.0000
49956 640000.0000
49957 640000.0000
49958 640000.0000
49959 640000.0000
49960 640000.0000
49961 640000.0000
49962 640000.0000
49963 640000.0000
49964 640000.0000
49965 640000.0000
49966 640000.0000
49967 640000.0000
49968 640000.0000
49969 640000.0000
49970 640000.0000
49971 640000.0000
49972 640000.0000
49973 640000.0000
49974 640000.0000
49975 640000.0000
49976 640000.0000
49977 640000.0000
49978 640000.0000
49979 640000.0000
49980 640000.0000
49981 640000.0000
49982 640000.0000
49983 640000.0000
49984 640000.0000
49985 640000.0000
49986 640000.0000
49987 640000.0000
49988 640000.0000
49989 640000.0000
49990 640000.0000
49991 640000.0000
49992 640000.0000
49993 640000.0000
49994 640000.0000
49995 640000.0000
49996 640000.0000
49997 640000.0000
49998 640000.0000
49999 640000.0000
50000 640000.0000
50001 640000.0000
50002 640000.0000
50003 640000.0000
50004 640000.0000
50005 640000.0000
50006 640000.0000
50007 640000.0000
50008 640000.0000
50009 640000.0000
50010 640000.0000
50011 640000.0000
50012 640000.0000
50013 640000.0000
50014 640000.0000
50015 640000.0000
50016 640000.0000
50017 640000.0000
50018 640000.0000
50019 640000.0000
50020 640000.0000
50021 640000.0000
50022 640000.0000
50023 640000.0000
50024 640000.0000
50025 640000.0000
50026 640000.0000
50027 640000.0000
50028 640000.0000
50029 640000.0000
50030 640000.0000
50031 640000.0000
50032 640000.0000
50033 640000.0000
50034 640000.0000
50035 640000.0000
50036 640000.0000
50037 640000.0000