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 (
    809, 5139, 5133, 5132, 5131, 5140, 6256, 
    6257, 6267, 6259, 6224, 6226, 6238, 
    6246, 6235, 6242, 6740, 6244, 6239, 
    6241, 6237, 6208, 6247, 6738, 6255, 
    6243, 6240, 6737, 6206, 6252, 6260, 
    6258, 6207, 6209, 6741, 6266, 6250, 
    6269, 6236, 6268, 4238, 2756, 4239, 
    3913, 3910, 4619, 3916, 3898
  ) 
  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.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "33.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": 48,
        "rows_produced_per_join": 9,
        "filtered": "19.12",
        "index_condition": "(`dbggbern`.`cscart_product_prices`.`product_id` in (809,5139,5133,5132,5131,5140,6256,6257,6267,6259,6224,6226,6238,6246,6235,6242,6740,6244,6239,6241,6237,6208,6247,6738,6255,6243,6240,6737,6206,6252,6260,6258,6207,6209,6741,6266,6250,6269,6236,6268,4238,2756,4239,3913,3910,4619,3916,3898))",
        "cost_info": {
          "read_cost": "32.69",
          "eval_cost": "0.92",
          "prefix_cost": "33.61",
          "data_read_per_join": "220"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`dbggbern`.`cscart_product_prices`.`lower_limit` = 1) and (`dbggbern`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
809 2.90000000
2756 15.90000000
3898 15.90000000
3910 15.90000000
3913 15.90000000
3916 15.90000000
4238 15.90000000
4239 15.90000000
4619 15.90000000
5131 11.90000000
5132 11.90000000
5133 11.90000000
5139 11.90000000
5140 11.90000000
6206 15.90000000
6207 15.90000000
6208 11.90000000
6209 15.90000000
6224 15.90000000
6226 15.90000000
6235 11.90000000
6236 11.90000000
6237 11.90000000
6238 11.90000000
6239 11.90000000
6240 11.90000000
6241 11.90000000
6242 11.90000000
6243 11.90000000
6244 11.90000000
6246 11.90000000
6247 11.90000000
6250 15.90000000
6252 15.90000000
6255 15.90000000
6256 15.90000000
6257 15.90000000
6258 15.90000000
6259 15.90000000
6260 15.90000000
6266 15.90000000
6267 15.90000000
6268 15.90000000
6269 15.90000000
6737 15.90000000
6738 15.90000000
6740 11.90000000
6741 15.90000000