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 (
    461277, 461276, 461275, 461274, 461273, 
    461272, 461271, 461270, 461269, 461268, 
    461267, 461266, 461265, 461264, 461263, 
    461262, 461261, 461260, 461259, 461258, 
    461257, 461256, 461255, 461254, 461253, 
    461252, 461251, 461250, 461249, 461248, 
    461247, 461246, 461245, 461244, 461243, 
    461242, 461218, 461039, 461038, 461037, 
    461036, 461035, 461034, 461033, 461032, 
    461031, 461030, 461029, 461026, 461025, 
    461022, 461020, 461018, 461017, 461013, 
    461010, 461009, 461008, 460961, 460958, 
    460957, 460955, 460952, 460951, 460948, 
    460947, 460946, 460918, 460921, 460936, 
    460804, 460816, 460828, 460835, 460856, 
    460859, 460861, 460869, 460870, 460873, 
    460888, 460902, 460734, 460754, 460758, 
    460765, 460774, 460778, 460795, 460638, 
    460693, 460698, 460504, 460515, 460518, 
    460521
  ) 
  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.00254

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.396590684,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "usergroup",
          "key_length": "9",
          "used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
          "loops": 1,
          "rows": 192,
          "cost": 0.3346388,
          "filtered": 50,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (461277,461276,461275,461274,461273,461272,461271,461270,461269,461268,461267,461266,461265,461264,461263,461262,461261,461260,461259,461258,461257,461256,461255,461254,461253,461252,461251,461250,461249,461248,461247,461246,461245,461244,461243,461242,461218,461039,461038,461037,461036,461035,461034,461033,461032,461031,461030,461029,461026,461025,461022,461020,461018,461017,461013,461010,461009,461008,460961,460958,460957,460955,460952,460951,460948,460947,460946,460918,460921,460936,460804,460816,460828,460835,460856,460859,460861,460869,460870,460873,460888,460902,460734,460754,460758,460765,460774,460778,460795,460638,460693,460698,460504,460515,460518,460521) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
460504 1028.54000000
460515 1483.48000000
460518 863.17000000
460521 1482.99000000
460638 92.30000000
460693 1041.05000000
460698 1666.28000000
460734 840.93000000
460754 1598.34000000
460758 953.76000000
460765 317.71000000
460774 211.37000000
460778 1806.24000000
460795 154.51000000
460804 1718.68000000
460816 1617.25000000
460828 1680.46000000
460835 745.32000000
460856 1827.05000000
460859 767.98000000
460861 74.19000000
460869 1511.90000000
460870 1033.80000000
460873 1093.17000000
460888 796.49000000
460902 1822.05000000
460918 1885.10000000
460921 40.41000000
460936 1976.71000000
460946 1000.00000000
460947 499.00000000
460948 199.99000000
460951 100.00000000
460952 100.00000000
460955 199999.00000000
460957 100.00000000
460958 190.00000000
460961 100.00000000
461008 100.00000000
461009 100.00000000
461010 100.00000000
461013 100.00000000
461017 100.00000000
461018 10.00000000
461020 105.00000000
461022 100.00000000
461025 490.00000000
461026 499.00000000
461029 299.00000000
461030 100.00000000
461031 100.00000000
461032 130.00000000
461033 1000.00000000
461034 100.00000000
461035 1000.00000000
461036 1000.00000000
461037 120.00000000
461038 200.00000000
461039 100.00000000
461218 0.00000000
461242 1000.00000000
461243 1000.00000000
461244 250.00000000
461245 120.00000000
461246 100.00000000
461247 120.00000000
461248 39.99000000
461249 100.00000000
461250 500.98000000
461251 100.00000000
461252 100.00000000
461253 928.97000000
461254 2365.63000000
461255 2172.90000000
461256 203.00000000
461257 180.00000000
461258 100.00000000
461259 100.00000000
461260 105.00000000
461261 1000.00000000
461262 160.00000000
461263 30.00000000
461264 111.00000000
461265 110.00000000
461266 1000.00000000
461267 220.00000000
461268 77.00000000
461269 199.99000000
461270 299.99000000
461271 1000.00000000
461272 100.00000000
461273 1000.00000000
461274 100.00000000
461275 100.00000000
461276 100.00000000
461277 100.00000000