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 (
    9953, 9942, 9676, 9932, 9937, 9573, 9574, 
    9575, 9576, 9577, 9672, 9578, 9638, 
    9643, 9671, 9581, 9582, 9584, 9585, 
    8687, 9685, 9954, 9681, 9682, 9955, 
    9683, 9686, 9956, 9758, 9612, 9730, 
    9616, 8933, 9732, 9735, 9587, 9589, 
    9599, 8936, 9565, 9600, 9604, 9606, 
    9947, 9621, 9610, 8939, 9611, 9664, 
    9665, 9748, 9564, 9750, 9623, 9958, 
    9960, 9666, 9952, 9959, 9949, 9753, 
    9944, 9754, 9562, 9756, 8983, 9673, 
    9961, 9957, 9757, 9626, 9627, 9629, 
    9630, 9632, 9633, 9635, 9640, 9945, 
    9950, 9641, 8945, 9625, 9645, 9647, 
    9677, 9648, 9650, 9921, 8941, 9922, 
    9923, 9925, 9924, 9745, 9651, 9652, 
    9746, 9654, 9926
  ) 
  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.01210

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 (9953,9942,9676,9932,9937,9573,9574,9575,9576,9577,9672,9578,9638,9643,9671,9581,9582,9584,9585,8687,9685,9954,9681,9682,9955,9683,9686,9956,9758,9612,9730,9616,8933,9732,9735,9587,9589,9599,8936,9565,9600,9604,9606,9947,9621,9610,8939,9611,9664,9665,9748,9564,9750,9623,9958,9960,9666,9952,9959,9949,9753,9944,9754,9562,9756,8983,9673,9961,9957,9757,9626,9627,9629,9630,9632,9633,9635,9640,9945,9950,9641,8945,9625,9645,9647,9677,9648,9650,9921,8941,9922,9923,9925,9924,9745,9651,9652,9746,9654,9926) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
8687 170.00000000
8933 170.00000000
8936 170.00000000
8939 170.00000000
8941 170.00000000
8945 170.00000000
8983 170.00000000
9562 170.00000000
9564 170.00000000
9565 170.00000000
9573 170.00000000
9574 170.00000000
9575 170.00000000
9576 170.00000000
9577 170.00000000
9578 170.00000000
9581 170.00000000
9582 170.00000000
9584 170.00000000
9585 170.00000000
9587 170.00000000
9589 170.00000000
9599 170.00000000
9600 170.00000000
9604 170.00000000
9606 170.00000000
9610 170.00000000
9611 170.00000000
9612 170.00000000
9616 170.00000000
9621 170.00000000
9623 170.00000000
9625 170.00000000
9626 170.00000000
9627 170.00000000
9629 170.00000000
9630 170.00000000
9632 170.00000000
9633 170.00000000
9635 170.00000000
9638 170.00000000
9640 170.00000000
9641 170.00000000
9643 170.00000000
9645 170.00000000
9647 170.00000000
9648 170.00000000
9650 170.00000000
9651 170.00000000
9652 170.00000000
9654 170.00000000
9664 170.00000000
9665 170.00000000
9666 170.00000000
9671 170.00000000
9672 170.00000000
9673 170.00000000
9676 170.00000000
9677 170.00000000
9681 170.00000000
9682 170.00000000
9683 170.00000000
9685 170.00000000
9686 170.00000000
9730 170.00000000
9732 170.00000000
9735 170.00000000
9745 170.00000000
9746 170.00000000
9748 170.00000000
9750 170.00000000
9753 170.00000000
9754 170.00000000
9756 170.00000000
9757 170.00000000
9758 170.00000000
9921 170.00000000
9922 170.00000000
9923 170.00000000
9924 170.00000000
9925 170.00000000
9926 170.00000000
9932 170.00000000
9937 170.00000000
9942 170.00000000
9944 170.00000000
9945 170.00000000
9947 170.00000000
9949 170.00000000
9950 170.00000000
9952 170.00000000
9953 170.00000000
9954 170.00000000
9955 170.00000000
9956 170.00000000
9957 170.00000000
9958 170.00000000
9959 170.00000000
9960 170.00000000
9961 170.00000000