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 (
    45574, 45816, 45817, 45818, 45819, 45820, 
    45821, 45822, 45823, 45824, 45825, 
    45826, 45827, 45828, 45829, 45830, 
    45831, 45832, 45833, 45834, 45835, 
    45836, 45837, 45838, 45839, 45840, 
    45841, 45842, 45843, 45844, 45845, 
    45846, 45847, 45848, 45849, 45850, 
    45851, 45852, 45853, 45854
  ) 
  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.04367

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": 25327,
              "filtered": 12.6262579,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (45574,45816,45817,45818,45819,45820,45821,45822,45823,45824,45825,45826,45827,45828,45829,45830,45831,45832,45833,45834,45835,45836,45837,45838,45839,45840,45841,45842,45843,45844,45845,45846,45847,45848,45849,45850,45851,45852,45853,45854) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
45574 215000.0000
45816 215000.0000
45817 275000.0000
45818 215000.0000
45819 275000.0000
45820 215000.0000
45821 275000.0000
45822 215000.0000
45823 275000.0000
45824 215000.0000
45825 275000.0000
45826 215000.0000
45827 275000.0000
45828 215000.0000
45829 275000.0000
45830 215000.0000
45831 275000.0000
45832 215000.0000
45833 275000.0000
45834 215000.0000
45835 275000.0000
45836 215000.0000
45837 275000.0000
45838 275000.0000
45839 215000.0000
45840 275000.0000
45841 215000.0000
45842 275000.0000
45843 215000.0000
45844 275000.0000
45845 215000.0000
45846 275000.0000
45847 215000.0000
45848 275000.0000
45849 215000.0000
45850 275000.0000
45851 215000.0000
45852 275000.0000
45853 215000.0000
45854 275000.0000