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 (
    1335, 1338, 1233, 1324, 1323, 1081, 1326, 
    1325, 1333, 1082, 1321, 1330, 1331, 
    1329, 1334, 1337, 1339, 1340, 1343, 
    399, 1299, 1810, 1811, 2918, 1341, 1342, 
    1856, 2913, 1815, 1819, 2914, 1859, 
    1858, 1850, 1294, 1298, 1297, 1293, 
    1295, 1814, 1816, 1817, 1818, 1820, 
    1821, 1822, 1823, 1824, 1825, 1826, 
    1827, 1828, 1829, 1830, 1831, 1300, 
    1301, 1302, 1304, 1303, 1812, 1808, 
    1807, 1813, 1836, 1860, 1861, 1837, 
    1851, 1853, 1838, 1839, 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.00175

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.173824059,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ALL",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "loops": 1,
              "rows": 810,
              "cost": 0.1445944,
              "filtered": 5.618655682,
              "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (1335,1338,1233,1324,1323,1081,1326,1325,1333,1082,1321,1330,1331,1329,1334,1337,1339,1340,1343,399,1299,1810,1811,2918,1341,1342,1856,2913,1815,1819,2914,1859,1858,1850,1294,1298,1297,1293,1295,1814,1816,1817,1818,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1300,1301,1302,1304,1303,1812,1808,1807,1813,1836,1860,1861,1837,1851,1853,1838,1839,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
399 282.00000000
1081 248.16000000
1082 411.72000000
1148 184.24000000
1149 723.80000000
1150 238.76000000
1151 808.40000000
1152 270.72000000
1233 37.60000000
1293 676.80000000
1294 327.12000000
1295 479.40000000
1297 161.68000000
1298 242.52000000
1299 1710.80000000
1300 327.12000000
1301 695.60000000
1302 1052.80000000
1303 344.04000000
1304 360.96000000
1321 99.64000000
1323 940.00000000
1324 676.80000000
1325 1118.60000000
1326 695.60000000
1329 443.68000000
1330 10.00000000
1331 443.68000000
1333 184.24000000
1334 1146.80000000
1335 498.20000000
1337 686.20000000
1338 340.28000000
1339 152.28000000
1340 219.96000000
1341 498.20000000
1342 340.28000000
1343 415.48000000
1807 295.16000000
1808 161.68000000
1809 376.00000000
1810 1118.60000000
1811 1118.60000000
1812 261.32000000
1813 428.64000000
1814 137.24000000
1815 30.08000000
1816 152.28000000
1817 161.68000000
1818 176.72000000
1819 33.84000000
1820 203.04000000
1821 203.04000000
1822 189.88000000
1823 203.04000000
1824 214.32000000
1825 240.64000000
1826 276.36000000
1827 268.84000000
1828 293.28000000
1829 374.12000000
1830 374.12000000
1831 517.00000000
1834 67.68000000
1835 789.60000000
1836 75.20000000
1837 206.80000000
1838 676.80000000
1839 676.80000000
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
1850 92.12000000
1851 120.32000000
1853 109.04000000
1855 219.96000000
1856 488.80000000
1857 214.32000000
1858 214.32000000
1859 479.40000000
1860 392.92000000
1861 195.52000000
1862 103.40000000
1863 144.76000000
1864 770.80000000
2913 919.32000000
2914 938.12000000
2915 990.76000000
2918 100.00000000