SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '1521/1677/%'

Query time 0.00067

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "37.61"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "id_path"
      ],
      "key": "id_path",
      "used_key_parts": [
        "id_path"
      ],
      "key_length": "767",
      "rows_examined_per_scan": 83,
      "rows_produced_per_join": 83,
      "filtered": "100.00",
      "index_condition": "(`s2cart`.`cscart_categories`.`id_path` like '1521/1677/%')",
      "cost_info": {
        "read_cost": "29.31",
        "eval_cost": "8.30",
        "prefix_cost": "37.61",
        "data_read_per_join": "293K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ]
    }
  }
}

Result

category_id
1678
1679
1683
1687
1688
1691
1692
1693
1680
1681
1682
1684
1685
1686
1689
1690
1694
1695
1698
1699
1696
1697
1700
1701
1702
1703
1704
1705
1706
1708
1709
1710
1711
1712
1713
1722
1723
1724
1736
1707
1714
1715
1716
1717
1718
1719
1729
1730
1733
1720
1721
1728
1732
1734
1735
1737
1738
1739
1740
1741
1742
1743
1745
1746
1725
1726
1727
1731
1744
1747
1748
1749
1750
1751
1752
1754
1753
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1772
1773
1774
1765
1766
1767
1768
1769
1770
1771