$categories{"id_category":"60","name":"Nike","link_rewrite":"nike","id_shop":"1","children":{"115":{"id_category":"115","name":"Nike Air Max","link_rewrite":"nike-air-max","id_shop":"1","children":{"157":{"id_category":"157","name":"Nike Tn - Air Max Plus","link_rewrite":"nike-tn-air-max-plus","id_shop":"1","children":{"329":{"id_category":"329","name":"Air Max Plus Utility Lace Toggle","link_rewrite":"air-max-plus-utility-lace-toggle","id_shop":"1"},"330":{"id_category":"330","name":"Air Max Plus Terrascape","link_rewrite":"air-max-plus-terrascape","id_shop":"1"},"341":{"id_category":"341","name":"Air Max TN Plus A Cold Wall","link_rewrite":"air-max-tn-plus-a-cold-wall","id_shop":"1"}}},"158":{"id_category":"158","name":"Air Max 1","link_rewrite":"air-max-1","id_shop":"1","children":{"283":{"id_category":"283","name":"Air Max 1 Patta","link_rewrite":"air-max-1-patta","id_shop":"1"}}},"159":{"id_category":"159","name":"Air Max 90","link_rewrite":"air-max-90","id_shop":"1"},"160":{"id_category":"160","name":"Air Max 95","link_rewrite":"air-max-95","id_shop":"1"},"285":{"id_category":"285","name":"Air Max 96","link_rewrite":"air-max-96","id_shop":"1"},"161":{"id_category":"161","name":"Air Max 97","link_rewrite":"air-max-97","id_shop":"1"},"286":{"id_category":"286","name":"Air Max BW","link_rewrite":"air-max-bw","id_shop":"1"},"343":{"id_category":"343","name":"Air Max DN","link_rewrite":"air-max-dn","id_shop":"1"},"349":{"id_category":"349","name":"Air Max 180","link_rewrite":"air-max-180","id_shop":"1"},"357":{"id_category":"357","name":"Air Max Plus Drift","link_rewrite":"air-max-plus-drift","id_shop":"1"}}},"118":{"id_category":"118","name":"Nike Dunk","link_rewrite":"nike-dunk","id_shop":"1","children":{"124":{"id_category":"124","name":"Nike Dunk High","link_rewrite":"nike-dunk-high","id_shop":"1"},"125":{"id_category":"125","name":"Nike Dunk Low","link_rewrite":"nike-dunk-low","id_shop":"1","children":{"263":{"id_category":"263","name":"Nike Dunk Low Next Nature","link_rewrite":"nike-dunk-low-next-nature","id_shop":"1"},"162":{"id_category":"162","name":"Nike Dunk Low Disrupt","link_rewrite":"nike-dunk-low-disrupt","id_shop":"1"},"212":{"id_category":"212","name":"Nike Dunk Low Off White","link_rewrite":"nike-dunk-low-off-white","id_shop":"1"},"168":{"id_category":"168","name":"Nike Dunk Low SB","link_rewrite":"nike-dunk-low-sb","id_shop":"1"}}},"293":{"id_category":"293","name":"Dunk Noir","link_rewrite":"dunk-noir","id_shop":"1"},"294":{"id_category":"294","name":"Dunk Blanche","link_rewrite":"dunk-blanche","id_shop":"1"},"295":{"id_category":"295","name":"Dunk Bleu","link_rewrite":"dunk-bleu","id_shop":"1"},"296":{"id_category":"296","name":"Dunk Verte","link_rewrite":"dunk-verte","id_shop":"1"},"297":{"id_category":"297","name":"Dunk Rose","link_rewrite":"dunk-rose","id_shop":"1"},"298":{"id_category":"298","name":"Dunk Orange","link_rewrite":"dunk-orange","id_shop":"1"}}},"207":{"id_category":"207","name":"Nike Travis Scott","link_rewrite":"nike-travis-scott","id_shop":"1"},"232":{"id_category":"232","name":"Nike Nocta","link_rewrite":"nike-nocta","id_shop":"1"},"120":{"id_category":"120","name":"Nike Air Force 1","link_rewrite":"nike-air-force-1","id_shop":"1","children":{"238":{"id_category":"238","name":"Air Force 1 Supreme","link_rewrite":"air-force-1-supreme","id_shop":"1"},"153":{"id_category":"153","name":"Air Force 1 '07","link_rewrite":"air-force-1-07","id_shop":"1"},"74":{"id_category":"74","name":"Air Force 1 Shadow","link_rewrite":"air-force-1-shadow","id_shop":"1"},"123":{"id_category":"123","name":"Air Force 1 Pixel","link_rewrite":"air-force-1-pixel","id_shop":"1"},"106":{"id_category":"106","name":"Air Force 1 LV8 Utility","link_rewrite":"nike-air-force-1-lv8-utility","id_shop":"1"},"107":{"id_category":"107","name":"Air Force 1 Type","link_rewrite":"air-force-1-type","id_shop":"1"},"264":{"id_category":"264","name":"Air Force 1 Low","link_rewrite":"air-force-1-low","id_shop":"1"},"266":{"id_category":"266","name":"Air Force 1 Mid","link_rewrite":"air-force-1-mid","id_shop":"1"},"265":{"id_category":"265","name":"Air Force 1 High","link_rewrite":"air-force-1-high","id_shop":"1"},"344":{"id_category":"344","name":"Air Force 1 Custom","link_rewrite":"air-force-1-custom","id_shop":"1"}}},"326":{"id_category":"326","name":"Nike P6000","link_rewrite":"nike-p6000","id_shop":"1"},"105":{"id_category":"105","name":"Nike SB","link_rewrite":"nike-sb","id_shop":"1"},"277":{"id_category":"277","name":"Nike Zoom Vomero 5","link_rewrite":"nike-zoom-vomero-5","id_shop":"1"},"214":{"id_category":"214","name":"Nike Jacquemus","link_rewrite":"nike-jacquemus","id_shop":"1"},"206":{"id_category":"206","name":"Nike Cortez","link_rewrite":"nike-cortez","id_shop":"1"},"348":{"id_category":"348","name":"Nike Ja 1","link_rewrite":"nike-ja-1","id_shop":"1"},"284":{"id_category":"284","name":"Nike Shox","link_rewrite":"nike-shox","id_shop":"1"},"101":{"id_category":"101","name":"Nike Sacai","link_rewrite":"nike-sacai","id_shop":"1","children":{"151":{"id_category":"151","name":"Nike Sacai Vaporwaffle","link_rewrite":"nike-sacai-vaporwaffle","id_shop":"1"},"150":{"id_category":"150","name":"Nike Sacai LD Waffle","link_rewrite":"nike-sacai-ld-waffle","id_shop":"1"},"152":{"id_category":"152","name":"Nike Sacai Blazer","link_rewrite":"nike-sacai-blazer","id_shop":"1"}}},"228":{"id_category":"228","name":"Nike Supreme","link_rewrite":"nike-supreme","id_shop":"1"},"59":{"id_category":"59","name":"Nike Off-White","link_rewrite":"nike-off-white","id_shop":"1"},"135":{"id_category":"135","name":"Nike Blazer","link_rewrite":"nike-blazer","id_shop":"1","children":{"393":{"id_category":"393","name":"Nike Blazer Low","link_rewrite":"nike-blazer-low","id_shop":"1"}}},"73":{"id_category":"73","name":"Nike React","link_rewrite":"nike-react","id_shop":"1"},"327":{"id_category":"327","name":"Nike Kobe","link_rewrite":"nike-kobe","id_shop":"1"},"332":{"id_category":"332","name":"Nike KD","link_rewrite":"nike-kd","id_shop":"1"},"342":{"id_category":"342","name":"Nike Air Trainer 1","link_rewrite":"nike-air-trainer-1","id_shop":"1"},"350":{"id_category":"350","name":"Nike Book 1","link_rewrite":"nike-book-1","id_shop":"1"},"373":{"id_category":"373","name":"Nike Pegasus","link_rewrite":"nike-pegasus","id_shop":"1"},"376":{"id_category":"376","name":"Nike Air More Uptempo","link_rewrite":"nike-air-more-uptempo","id_shop":"1"},"392":{"id_category":"392","name":"Nike Court Vision","link_rewrite":"nike-court-vision","id_shop":"1"}}}
idcategory
idparent122
idparentSELECT c.id_parent FROM `ps_category` c WHERE c.id_category = 0