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 (
    6903, 7817, 7805, 7819, 7803, 7824, 7905, 
    8336, 7815, 6941, 7121, 7086, 7714, 
    7176, 6938, 6911, 6994, 7084, 6993, 
    6991, 7027, 6939, 7054, 6940, 7169, 
    7120, 7712, 7138, 7095, 7167, 7141, 
    7695, 7031, 7089, 6992, 6892, 7125, 
    6880, 6996, 7173, 7210, 7711, 7715, 
    7792, 7170, 7174, 7087, 7177, 6989, 
    6995, 6997, 7142, 7171, 7172, 7132, 
    7795, 7709, 7806, 7918, 7119, 7696, 
    7793, 7903, 7929, 7931, 7791, 7814, 
    7818, 7822, 7902, 7925, 7928, 7672, 
    7697, 7713, 7790, 7808, 7820, 7821, 
    7831
  ) 
  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.00197

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "56.01"
    },
    "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": 80,
        "rows_produced_per_join": 15,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (6903,7817,7805,7819,7803,7824,7905,8336,7815,6941,7121,7086,7714,7176,6938,6911,6994,7084,6993,6991,7027,6939,7054,6940,7169,7120,7712,7138,7095,7167,7141,7695,7031,7089,6992,6892,7125,6880,6996,7173,7210,7711,7715,7792,7170,7174,7087,7177,6989,6995,6997,7142,7171,7172,7132,7795,7709,7806,7918,7119,7696,7793,7903,7929,7931,7791,7814,7818,7822,7902,7925,7928,7672,7697,7713,7790,7808,7820,7821,7831))",
        "cost_info": {
          "read_cost": "54.41",
          "eval_cost": "1.60",
          "prefix_cost": "56.01",
          "data_read_per_join": "383"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
6880 5500.00000000
6892 545000.00000000
6903 4000.00000000
6911 6000.00000000
6938 6750.00000000
6939 6750.00000000
6940 7000.00000000
6941 8000.00000000
6989 8250.00000000
6991 12000.00000000
6992 12000.00000000
6993 15000.00000000
6994 16250.00000000
6995 17000.00000000
6996 18000.00000000
6997 18000.00000000
7027 18000.00000000
7031 18750.00000000
7054 32000.00000000
7084 30750.00000000
7086 22250.00000000
7087 22500.00000000
7089 23500.00000000
7095 23500.00000000
7119 23500.00000000
7120 24000.00000000
7121 24500.00000000
7125 24500.00000000
7132 24750.00000000
7138 24750.00000000
7141 25000.00000000
7142 25000.00000000
7167 25500.00000000
7169 26250.00000000
7170 26250.00000000
7171 26500.00000000
7172 27000.00000000
7173 27000.00000000
7174 27250.00000000
7176 28000.00000000
7177 28000.00000000
7210 28000.00000000
7672 30500.00000000
7695 32750.00000000
7696 33500.00000000
7697 24000.00000000
7709 12000.00000000
7711 31000.00000000
7712 26500.00000000
7713 25000.00000000
7714 27750.00000000
7715 28250.00000000
7790 24750.00000000
7791 54500.00000000
7792 64500.00000000
7793 54500.00000000
7795 40750.00000000
7803 54500.00000000
7805 32250.00000000
7806 22500.00000000
7808 24750.00000000
7814 81750.00000000
7815 86500.00000000
7817 75750.00000000
7818 92000.00000000
7819 74000.00000000
7820 64750.00000000
7821 105000.00000000
7822 39750.00000000
7824 29750.00000000
7831 30000.00000000
7902 32000.00000000
7903 32000.00000000
7905 32000.00000000
7918 37750.00000000
7925 81000.00000000
7928 85750.00000000
7929 148500.00000000
7931 7250.00000000
8336 7250.00000000