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 (
    18481, 18505, 18506, 18483, 18501, 18507, 
    18523, 18508, 18509, 18510, 18511, 
    18512, 18484, 18513, 18514, 18485, 
    18486, 18487, 18488, 18515, 18516, 
    18517, 18518, 18496, 18519, 18489, 
    18490, 18520, 18521, 18493, 18491, 
    18492, 18522
  ) 
  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.01360

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": 18.60425377,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (18481,18505,18506,18483,18501,18507,18523,18508,18509,18510,18511,18512,18484,18513,18514,18485,18486,18487,18488,18515,18516,18517,18518,18496,18519,18489,18490,18520,18521,18493,18491,18492,18522) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
18481 59.00000000
18483 79.00000000
18484 79.00000000
18485 79.00000000
18486 79.00000000
18487 79.00000000
18488 79.00000000
18489 79.00000000
18490 79.00000000
18491 79.00000000
18492 79.00000000
18493 79.00000000
18496 79.00000000
18501 79.00000000
18505 89.00000000
18506 79.00000000
18507 79.00000000
18508 79.00000000
18509 79.00000000
18510 79.00000000
18511 79.00000000
18512 79.00000000
18513 79.00000000
18514 79.00000000
18515 79.00000000
18516 79.00000000
18517 79.00000000
18518 79.00000000
18519 79.00000000
18520 79.00000000
18521 79.00000000
18522 79.00000000
18523 79.00000000