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 (
    19024, 19129, 18885, 19039, 20770, 20433, 
    20512, 19707, 19710, 20729, 19548, 
    19471, 10846, 8669, 8670, 7515, 9721, 
    9286, 7608, 19046, 19537, 19047, 19417, 
    20514, 20538, 20515, 20539, 20732, 
    20733, 19072, 20525, 20526, 9539
  ) 
  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.00015

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": 18.60425377,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (19024,19129,18885,19039,20770,20433,20512,19707,19710,20729,19548,19471,10846,8669,8670,7515,9721,9286,7608,19046,19537,19047,19417,20514,20538,20515,20539,20732,20733,19072,20525,20526,9539) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
7515 335.00000000
7608 335.00000000
8669 335.00000000
8670 335.00000000
9286 335.00000000
9539 335.00000000
9721 335.00000000
10846 335.00000000
18885 495.00000000
19024 335.00000000
19039 335.00000000
19046 335.00000000
19047 335.00000000
19072 335.00000000
19129 495.00000000
19417 335.00000000
19471 335.00000000
19537 335.00000000
19548 335.00000000
19707 495.00000000
19710 335.00000000
20433 495.00000000
20512 495.00000000
20514 335.00000000
20515 335.00000000
20525 335.00000000
20526 335.00000000
20538 495.00000000
20539 495.00000000
20729 495.00000000
20732 335.00000000
20733 335.00000000
20770 495.00000000