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 (
    4068, 4087, 3931, 4118, 4116, 4054, 4117, 
    4115, 4135, 3946, 3960, 3962, 3959, 
    4362, 3967, 3963, 3966, 3950, 4007, 
    4008, 4009, 4012, 4081, 4082, 4083, 
    4084, 4085, 3980, 3984, 3979
  ) 
  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.00097

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "21.01"
    },
    "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": 30,
        "rows_produced_per_join": 4,
        "filtered": "14.40",
        "index_condition": "(`dev_yourmart_co_bw`.`cscart_product_prices`.`product_id` in (4068,4087,3931,4118,4116,4054,4117,4115,4135,3946,3960,3962,3959,4362,3967,3963,3966,3950,4007,4008,4009,4012,4081,4082,4083,4084,4085,3980,3984,3979))",
        "cost_info": {
          "read_cost": "20.58",
          "eval_cost": "0.43",
          "prefix_cost": "21.01",
          "data_read_per_join": "103"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`dev_yourmart_co_bw`.`cscart_product_prices`.`lower_limit` = 1) and (`dev_yourmart_co_bw`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
3931 505.92000000
3946 121.38000000
3950 75.48000000
3959 109.14000000
3960 146.88000000
3962 246.84000000
3963 233.58000000
3966 176.46000000
3967 79.56000000
3979 132.60000000
3980 135.66000000
3984 135.66000000
4007 564.06000000
4008 428.40000000
4009 428.40000000
4012 2295.00000000
4054 1626.90000000
4068 178.50000000
4081 451.86000000
4082 451.86000000
4083 451.86000000
4084 451.86000000
4085 451.86000000
4087 200.94000000
4115 550.80000000
4116 661.98000000
4117 550.80000000
4118 550.80000000
4135 125.46000000
4362 109.14000000