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 (
    1840, 1841, 1842, 1843, 1844, 1845, 1846, 
    1847, 1848, 1849, 1855, 2915, 1857, 
    1862, 1835, 1834, 1863, 1809, 1864, 
    1150, 1152, 1149, 1151, 1148
  ) 
  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.00060

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.052674528,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "usergroup",
          "key_length": "9",
          "used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
          "loops": 1,
          "rows": 48,
          "cost": 0.04656984,
          "filtered": 20,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1855,2915,1857,1862,1835,1834,1863,1809,1864,1150,1152,1149,1151,1148) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1148 184.24000000
1149 723.80000000
1150 238.76000000
1151 808.40000000
1152 270.72000000
1809 376.00000000
1834 67.68000000
1835 789.60000000
1840 676.80000000
1841 742.60000000
1842 742.60000000
1843 808.40000000
1844 808.40000000
1845 827.20000000
1846 864.80000000
1847 940.00000000
1848 1090.40000000
1849 1090.40000000
1855 219.96000000
1857 214.32000000
1862 103.40000000
1863 144.76000000
1864 770.80000000
2915 990.76000000