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 (
    1831, 1839, 1830, 1838, 1833, 1837, 1846, 
    1217, 951, 471, 469, 483, 473, 474, 481, 
    479, 1190, 1193, 943, 1156, 944, 803, 
    1904, 1165
  ) 
  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.00096

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "57.61"
    },
    "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": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.98",
        "index_condition": "(`eshopuga_upgr_4122`.`cscart_product_prices`.`product_id` in (1831,1839,1830,1838,1833,1837,1846,1217,951,471,469,483,473,474,481,479,1190,1193,943,1156,944,803,1904,1165))",
        "cost_info": {
          "read_cost": "56.65",
          "eval_cost": "0.96",
          "prefix_cost": "57.61",
          "data_read_per_join": "115"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`eshopuga_upgr_4122`.`cscart_product_prices`.`lower_limit` = 1) and (`eshopuga_upgr_4122`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
469 15.990000
471 19.000000
473 23.990000
474 20.000000
479 23.000000
481 23.000000
483 17.000000
803 16.000000
943 7.400000
944 20.410000
951 50.000000
1156 18.880000
1165 95.680000
1190 4.800000
1193 8.330000
1217 20.540000
1830 126.790000
1831 89.690000
1833 80.170000
1837 148.020000
1838 148.020000
1839 154.570000
1846 94.750000
1904 12.700000