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 (
    159, 158, 245, 238, 239, 242, 243, 241, 
    240, 214, 217, 218, 207, 59, 58, 60, 199, 
    198, 94, 96, 201, 114, 192, 136
  ) 
  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.00085

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "59.80"
    },
    "grouping_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "ref",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "lower_limit",
        "used_key_parts": [
          "lower_limit"
        ],
        "key_length": "3",
        "ref": [
          "const"
        ],
        "rows_examined_per_scan": 254,
        "rows_produced_per_join": 5,
        "filtered": "2.06",
        "index_condition": "(`danishecarter_25_march`.`cscart_product_prices`.`lower_limit` <=> 1)",
        "cost_info": {
          "read_cost": "9.00",
          "eval_cost": "1.05",
          "prefix_cost": "59.80",
          "data_read_per_join": "125"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`danishecarter_25_march`.`cscart_product_prices`.`product_id` in (159,158,245,238,239,242,243,241,240,214,217,218,207,59,58,60,199,198,94,96,201,114,192,136)) and (`danishecarter_25_march`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
58 779.00000000
59 599.00000000
60 1499.00000000
94 59.99000000
96 99.99000000
114 14.99000000
136 0.00000000
158 4750.00000000
159 11375.00000000
192 15.00000000
198 17.99000000
199 29.98000000
201 12.67000000
207 42.00000000
214 972.00000000
217 610.99000000
218 459.99000000
238 499.99000000
239 509.99000000
240 499.00000000
241 499.00000000
242 249.00000000
243 249.00000000
245 699.00000000