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 (
    6730, 7172, 6924, 7084, 6814, 6683, 7411, 
    6684, 6685, 6686, 6687, 6688, 6689, 
    6690, 6693, 11052, 6694, 6912, 6691, 
    6913, 6682, 6695, 6696, 11104, 6692, 
    8688, 6697, 8000, 6698, 6699, 6700, 
    6701, 6702, 6703, 6704, 6705, 6707, 
    6708, 6709, 6710, 6714, 6706, 6716, 
    6717, 6718, 6715, 6719, 6720, 6721, 
    6711, 6723, 6722, 6724, 6712, 6725, 
    6726, 6727, 6728, 6729, 6731, 6732, 
    8742, 6733, 6734, 6735, 6736, 6713, 
    6737, 6738, 6739, 6740, 6741, 6742, 
    6748, 8801, 8802, 11103, 6744, 6745, 
    6746, 6747, 10992, 6749, 6750, 8743, 
    6751, 6752, 6753, 6754, 6755, 6756, 
    6757, 6758, 6759, 6760, 6915, 6916, 
    6761, 6762, 11378
  ) 
  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.01410

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": 11706,
              "filtered": 100,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (6730,7172,6924,7084,6814,6683,7411,6684,6685,6686,6687,6688,6689,6690,6693,11052,6694,6912,6691,6913,6682,6695,6696,11104,6692,8688,6697,8000,6698,6699,6700,6701,6702,6703,6704,6705,6707,6708,6709,6710,6714,6706,6716,6717,6718,6715,6719,6720,6721,6711,6723,6722,6724,6712,6725,6726,6727,6728,6729,6731,6732,8742,6733,6734,6735,6736,6713,6737,6738,6739,6740,6741,6742,6748,8801,8802,11103,6744,6745,6746,6747,10992,6749,6750,8743,6751,6752,6753,6754,6755,6756,6757,6758,6759,6760,6915,6916,6761,6762,11378) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
6682 95.00000000
6683 95.00000000
6684 95.00000000
6685 95.00000000
6686 95.00000000
6687 95.00000000
6688 95.00000000
6689 95.00000000
6690 95.00000000
6691 95.00000000
6692 95.00000000
6693 95.00000000
6694 95.00000000
6695 95.00000000
6696 95.00000000
6697 95.00000000
6698 95.00000000
6699 95.00000000
6700 95.00000000
6701 95.00000000
6702 95.00000000
6703 95.00000000
6704 95.00000000
6705 95.00000000
6706 95.00000000
6707 95.00000000
6708 95.00000000
6709 95.00000000
6710 95.00000000
6711 95.00000000
6712 95.00000000
6713 95.00000000
6714 95.00000000
6715 95.00000000
6716 95.00000000
6717 95.00000000
6718 95.00000000
6719 95.00000000
6720 95.00000000
6721 95.00000000
6722 95.00000000
6723 95.00000000
6724 95.00000000
6725 95.00000000
6726 95.00000000
6727 95.00000000
6728 95.00000000
6729 95.00000000
6730 95.00000000
6731 95.00000000
6732 95.00000000
6733 95.00000000
6734 95.00000000
6735 95.00000000
6736 95.00000000
6737 95.00000000
6738 95.00000000
6739 95.00000000
6740 95.00000000
6741 95.00000000
6742 95.00000000
6744 95.00000000
6745 95.00000000
6746 95.00000000
6747 95.00000000
6748 95.00000000
6749 95.00000000
6750 95.00000000
6751 95.00000000
6752 95.00000000
6753 95.00000000
6754 95.00000000
6755 95.00000000
6756 95.00000000
6757 95.00000000
6758 95.00000000
6759 95.00000000
6760 95.00000000
6761 95.00000000
6762 95.00000000
6814 95.00000000
6912 95.00000000
6913 95.00000000
6915 95.00000000
6916 95.00000000
6924 95.00000000
7084 95.00000000
7172 95.00000000
7411 95.00000000
8000 95.00000000
8688 95.00000000
8742 95.00000000
8743 95.00000000
8801 95.00000000
8802 95.00000000
10992 95.00000000
11052 95.00000000
11103 95.00000000
11104 95.00000000
11378 95.00000000