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 (
    19860, 19820, 19863, 19865, 19866, 20154, 
    19867, 19868, 19869, 19870, 19871, 
    19872, 19873, 19875, 19874, 19876, 
    20087, 19877, 19878, 19879, 19880, 
    19881, 19882, 19883, 19884, 19885, 
    19886, 19888, 19889, 19890, 19891, 
    19892, 19893, 19894, 19895, 19896, 
    19897, 19898, 19899, 19900, 19901, 
    19902, 19903, 19904, 19905, 19925, 
    19906, 19907, 19908, 19909, 19910, 
    19911, 20576, 20088, 20089, 20091, 
    20092, 20093, 20094, 18661, 18662, 
    19131, 18664, 20724, 20725, 20728, 
    20955, 20956, 20957, 20958, 20959, 
    22277, 20971, 21078, 21102, 20972, 
    20973, 20974, 21103, 21923, 21924, 
    21925, 21926, 20065, 19887, 21749, 
    20723, 20726, 20727
  ) 
  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.01319

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 (19860,19820,19863,19865,19866,20154,19867,19868,19869,19870,19871,19872,19873,19875,19874,19876,20087,19877,19878,19879,19880,19881,19882,19883,19884,19885,19886,19888,19889,19890,19891,19892,19893,19894,19895,19896,19897,19898,19899,19900,19901,19902,19903,19904,19905,19925,19906,19907,19908,19909,19910,19911,20576,20088,20089,20091,20092,20093,20094,18661,18662,19131,18664,20724,20725,20728,20955,20956,20957,20958,20959,22277,20971,21078,21102,20972,20973,20974,21103,21923,21924,21925,21926,20065,19887,21749,20723,20726,20727) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
18661 285.00000000
18662 285.00000000
18664 285.00000000
19131 285.00000000
19820 285.00000000
19860 285.00000000
19863 285.00000000
19865 285.00000000
19866 285.00000000
19867 285.00000000
19868 285.00000000
19869 285.00000000
19870 285.00000000
19871 285.00000000
19872 285.00000000
19873 285.00000000
19874 285.00000000
19875 285.00000000
19876 285.00000000
19877 285.00000000
19878 285.00000000
19879 285.00000000
19880 285.00000000
19881 285.00000000
19882 285.00000000
19883 285.00000000
19884 285.00000000
19885 285.00000000
19886 285.00000000
19887 285.00000000
19888 285.00000000
19889 285.00000000
19890 285.00000000
19891 285.00000000
19892 285.00000000
19893 285.00000000
19894 285.00000000
19895 285.00000000
19896 285.00000000
19897 285.00000000
19898 285.00000000
19899 285.00000000
19900 285.00000000
19901 285.00000000
19902 285.00000000
19903 285.00000000
19904 285.00000000
19905 285.00000000
19906 285.00000000
19907 285.00000000
19908 285.00000000
19909 285.00000000
19910 285.00000000
19911 285.00000000
19925 285.00000000
20065 285.00000000
20087 285.00000000
20088 285.00000000
20089 285.00000000
20091 285.00000000
20092 285.00000000
20093 285.00000000
20094 285.00000000
20154 285.00000000
20576 285.00000000
20723 285.00000000
20724 285.00000000
20725 285.00000000
20726 285.00000000
20727 285.00000000
20728 285.00000000
20955 285.00000000
20956 285.00000000
20957 285.00000000
20958 285.00000000
20959 285.00000000
20971 285.00000000
20972 285.00000000
20973 285.00000000
20974 285.00000000
21078 285.00000000
21102 285.00000000
21103 285.00000000
21749 285.00000000
21923 285.00000000
21924 285.00000000
21925 285.00000000
21926 285.00000000
22277 285.00000000