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 (
    187, 232, 230, 231, 152, 160, 115, 124, 
    150, 151, 127, 237, 122, 179, 170, 177, 
    188, 181, 234, 233, 235, 185, 186, 236, 
    129, 131
  ) 
  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.00302

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 29,
          "filtered": 37.30486679,
          "index_condition": "cscart_product_prices.product_id in (187,232,230,231,152,160,115,124,150,151,127,237,122,179,170,177,188,181,234,233,235,185,186,236,129,131)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
115 183800.00000000
122 227800.00000000
124 80825.00000000
127 191160.00000000
129 71960.00000000
131 49960.00000000
150 4800.00000000
151 20000.00000000
152 28000.00000000
160 8000.00000000
170 5839.60000000
177 6000.00000000
179 11998.80000000
181 11499.65000000
185 5599.60000000
186 11999.60000000
187 11999.60000000
188 150.00000000
230 1675.00000000
231 1275.00000000
232 1275.00000000
233 1919.60000000
234 2399.60000000
235 3199.60000000
236 5499.65000000
237 11999.60000000