SELECT tr1.tax_class_id, tr2.tax_rate_id, tr2.name, tr2.rate, tr2.type, tr1.priority FROM oc_tax_rule tr1 LEFT JOIN oc_tax_rate tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) INNER JOIN oc_tax_rate_to_customer_group tr2cg ON (tr2.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN oc_zone_to_geo_zone z2gz ON (tr2.geo_zone_id = z2gz.geo_zone_id) LEFT JOIN oc_geo_zone gz ON (tr2.geo_zone_id = gz.geo_zone_id) WHERE tr1.based = 'shipping' AND tr2cg.customer_group_id = '1' AND z2gz.country_id = '300008' AND (z2gz.zone_id = '0' OR z2gz.zone_id = '0') ORDER BY tr1.priority ASC
SELECT tr1.tax_class_id, tr2.tax_rate_id, tr2.name, tr2.rate, tr2.type, tr1.priority FROM oc_tax_rule tr1 LEFT JOIN oc_tax_rate tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) INNER JOIN oc_tax_rate_to_customer_group tr2cg ON (tr2.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN oc_zone_to_geo_zone z2gz ON (tr2.geo_zone_id = z2gz.geo_zone_id) LEFT JOIN oc_geo_zone gz ON (tr2.geo_zone_id = gz.geo_zone_id) WHERE tr1.based = 'store' AND tr2cg.customer_group_id = '1' AND z2gz.country_id = '300008' AND (z2gz.zone_id = '0' OR z2gz.zone_id = '0') ORDER BY tr1.priority ASC
SELECTCOUNT(DISTINCT ps.product_id) AS total FROM oc_product_special ps LEFT JOIN oc_product p ON (ps.product_id = p.product_id) LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= '2024-05-10 01:36:00' AND p2s.store_id = '0' AND ps.customer_group_id = '1' AND ((ps.date_start = '0000-00-00' OR ps.date_start < '2024-05-10 01:36:00') AND (ps.date_end = '0000-00-00' OR ps.date_end > '2024-05-10 01:36:00'))
SELECT DISTINCT ps.product_id, (SELECT AVG(rating) FROM oc_review r1 WHERE r1.product_id = ps.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating FROM oc_product_special ps LEFT JOIN oc_product p ON (ps.product_id = p.product_id) LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= '2024-05-10 01:36:00' AND p2s.store_id = '0' AND ps.customer_group_id = '1' AND ((ps.date_start = '0000-00-00' OR ps.date_start < '2024-05-10 01:36:00') AND (ps.date_end = '0000-00-00' OR ps.date_end > '2024-05-10 01:36:00')) GROUP BY ps.product_id ORDER BY p.sort_order ASC, LCASE(pd.name) ASCLIMIT 352,16
SELECT `p`.`price`, `p`.`tax_class_id`, (SELECT `price` FROM `oc_product_special` `ps` WHERE `ps`.`product_id` = `p`.`product_id` AND `ps`.`customer_group_id` = '1' AND ((`ps`.`date_start` = '0000-00-00' OR `ps`.`date_start` < '2024-05-10 01:30:00') AND (`ps`.`date_end` = '0000-00-00' OR `ps`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `ps`.`priority` ASC, `ps`.`price` ASCLIMIT 1) AS `special`, (SELECT `price` FROM `oc_product_discount` `pd2` WHERE `pd2`.`product_id` = `p`.`product_id` AND `pd2`.`customer_group_id` = '1' AND `pd2`.`quantity` = '1' AND ((`pd2`.`date_start` = '0000-00-00' OR `pd2`.`date_start` < '2024-05-10 01:30:00') AND (`pd2`.`date_end` = '0000-00-00' OR `pd2`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `pd2`.`priority` ASC, `pd2`.`price` ASCLIMIT 1) AS `discount`, `p`.`manufacturer_id`, `man`.`name` AS `manufacturer`, `man`.`sort_order` AS `manufacturer_sort`, `p`.`product_id` FROM `oc_product` `p` LEFT JOIN `oc_manufacturer` `man` ON (`man`.`manufacturer_id` = `p`.`manufacturer_id`) LEFT JOIN `oc_product_to_store` `p2s` ON (`p`.`product_id` = `p2s`.`product_id`) WHERE `p`.`status` = '1' AND `p`.`date_available` <= '2024-05-10 01:30:00' AND `p2s`.`store_id` = '0' AND ROUND(((CASE WHEN (SELECT `price` FROM `oc_product_discount` `pd2` WHERE `pd2`.`product_id` = `p`.`product_id` AND `pd2`.`customer_group_id` = '1' AND `pd2`.`quantity` = '1' AND ((`pd2`.`date_start` = '0000-00-00' OR `pd2`.`date_start` < '2024-05-10 01:30:00') AND (`pd2`.`date_end` = '0000-00-00' OR `pd2`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `pd2`.`priority` ASC, `pd2`.`price` ASCLIMIT 1) IS NOT NULL THEN (SELECT `price` FROM `oc_product_discount` `pd2` WHERE `pd2`.`product_id` = `p`.`product_id` AND `pd2`.`customer_group_id` = '1' AND `pd2`.`quantity` = '1' AND ((`pd2`.`date_start` = '0000-00-00' OR `pd2`.`date_start` < '2024-05-10 01:30:00') AND (`pd2`.`date_end` = '0000-00-00' OR `pd2`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `pd2`.`priority` ASC, `pd2`.`price` ASCLIMIT 1) ELSE `p`.`price` END) - (CASE WHEN (SELECT `price` FROM `oc_product_special` `ps` WHERE `ps`.`product_id` = `p`.`product_id` AND `ps`.`customer_group_id` = '1' AND ((`ps`.`date_start` = '0000-00-00' OR `ps`.`date_start` < '2024-05-10 01:30:00') AND (`ps`.`date_end` = '0000-00-00' OR `ps`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `ps`.`priority` ASC, `ps`.`price` ASCLIMIT 1) IS NOT NULL THEN (SELECT `price` FROM `oc_product_special` `ps` WHERE `ps`.`product_id` = `p`.`product_id` AND `ps`.`customer_group_id` = '1' AND ((`ps`.`date_start` = '0000-00-00' OR `ps`.`date_start` < '2024-05-10 01:30:00') AND (`ps`.`date_end` = '0000-00-00' OR `ps`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `ps`.`priority` ASC, `ps`.`price` ASCLIMIT 1) WHEN (SELECT `price` FROM `oc_product_discount` `pd2` WHERE `pd2`.`product_id` = `p`.`product_id` AND `pd2`.`customer_group_id` = '1' AND `pd2`.`quantity` = '1' AND ((`pd2`.`date_start` = '0000-00-00' OR `pd2`.`date_start` < '2024-05-10 01:30:00') AND (`pd2`.`date_end` = '0000-00-00' OR `pd2`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `pd2`.`priority` ASC, `pd2`.`price` ASCLIMIT 1) IS NOT NULL THEN (SELECT `price` FROM `oc_product_discount` `pd2` WHERE `pd2`.`product_id` = `p`.`product_id` AND `pd2`.`customer_group_id` = '1' AND `pd2`.`quantity` = '1' AND ((`pd2`.`date_start` = '0000-00-00' OR `pd2`.`date_start` < '2024-05-10 01:30:00') AND (`pd2`.`date_end` = '0000-00-00' OR `pd2`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `pd2`.`priority` ASC, `pd2`.`price` ASCLIMIT 1) ELSE `p`.`price` END))/((CASE WHEN (SELECT `price` FROM `oc_product_discount` `pd2` WHERE `pd2`.`product_id` = `p`.`product_id` AND `pd2`.`customer_group_id` = '1' AND `pd2`.`quantity` = '1' AND ((`pd2`.`date_start` = '0000-00-00' OR `pd2`.`date_start` < '2024-05-10 01:30:00') AND (`pd2`.`date_end` = '0000-00-00' OR `pd2`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `pd2`.`priority` ASC, `pd2`.`price` ASCLIMIT 1) IS NOT NULL THEN (SELECT `price` FROM `oc_product_discount` `pd2` WHERE `pd2`.`product_id` = `p`.`product_id` AND `pd2`.`customer_group_id` = '1' AND `pd2`.`quantity` = '1' AND ((`pd2`.`date_start` = '0000-00-00' OR `pd2`.`date_start` < '2024-05-10 01:30:00') AND (`pd2`.`date_end` = '0000-00-00' OR `pd2`.`date_end` > '2024-05-10 01:30:00')) ORDER BY `pd2`.`priority` ASC, `pd2`.`price` ASCLIMIT 1) ELSE `p`.`price` END)/100)) > 0 GROUP BY `p`.`product_id`
SELECT `p2c`.`category_id`, `c`.`parent_id`, `cd`.`name`, COUNT(`p2c`.`product_id`) AS `count` FROM `oc_product_to_category` `p2c` LEFT JOIN `oc_category` `c` ON (`c`.`category_id` = `p2c`.`category_id`) LEFT JOIN `oc_category_description` `cd` ON (`cd`.`category_id` = `p2c`.`category_id` AND `cd`.`language_id` = '3') LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `p2c`.`category_id`) WHERE `c2s`.`store_id` = '0' AND `c`.`status` = '1' AND `p2c`.`product_id` IN (113087,113990,113991,113992,113994,152800,184258,184275,184276,184279,184280,184281,184292,184293,184295,184343,184383,184393,184394,184421,184432,184433,184444,184452,184463,184464,184465,184493,184508,184561,184563,184564,184615,184659,184660,184710,184711,184717,184718,184745,184783,184784,184786,184787,184789,184792,184817,184824,184825,184849,184885,184886,184911,184923,184949,184954,184970,184976,184992,185004,185029,185031,185037,185044,185046,185056,185057,185058,185060,185084,185087,185088,185099,185100,185101,185103,185104,185105,185106,185107,185117,185118,185120,185123,185155,185168,185169,185212,185213,185214,185221,185266,185268,185269,185270,185272,185288,185289,185317,185319,185331,185335,185346,185349,185350,185351,185364,185366,185367,185368,185389,185401,185410,185412,185413,185414,185415,185433,185434,185440,185442,185443,185449,185480,185481,185506,185512,185517,185522,185538,185561,185590,185591,185614,185621,185622,185623,185624,185739,185756,185776,185794,185795,185803,185806,185808,185821,185822,185825,185827,185829,185830,185831,185835,185836,185839,185845,185846,185847,185864,185865,185870,185883,185898,185906,185919,185925,185939,185948,185970,185974,185975,185978,185979,185997,186006,186013,186047,186048,186050,186051,186052,186054,186056,186059,186063,186073,186076,186109,186116,186119,186133,186148,186149,186183,186202,186203,186204,186206,186207,186212,186236,186238,186239,186240,186241,186245,186246,186249,186250,186251,186252,186255,186256,186266,186276,186277,186278,186319,186324,186333,186335,186336,186338,186340,186344,186346,186347,186348,186352,186358,186364,186367,186375,186378,186379,186381,186384,186385,186392,186395,186396,186401,186404,186406,186407,186416,186417,186431,186479,186480,186481,186482,186483,186488,186496,186518,186520,186535,186536,186561,186562,186565,186625,186724,186752,186753,186755,186812,186869,186870,187351,187352,187353,187575) GROUP BY `p2c`.`category_id` ORDER BY `c`.`sort_order`, LCASE(`cd`.`name`)
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '615' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '561' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1414' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1408' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1414' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1408' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1408' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1371' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1448' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1439' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1420' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1480' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1403' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1420' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1420' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1441' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1371' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1441' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1414' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1451' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1439' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1441' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1420' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1451' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1408' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1384' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1441' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1420' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '131' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '0' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '93' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '65' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1427' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '0' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '166' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '166' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '566' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '561' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '166' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1427' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1427' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1427' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '166' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1427' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1371' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '166' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '561' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '0' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '561' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '0' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1371' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1371' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1371' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '161' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1371' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '1370' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '166' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '166' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '151' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `c`.`category_id`, `c`.`parent_id` FROM `oc_category` `c` LEFT JOIN `oc_category_to_store` `c2s` ON (`c2s`.`category_id` = `c`.`category_id`) WHERE `c`.`category_id` = '0' AND `c2s`.`store_id` = '0' AND `c`.`status` = '1'
SELECT `pa`.`attribute_id`, `ad`.`name`, `pa`.`text`, COUNT(`pa`.`text`) AS `count` FROM `oc_product_attribute` `pa` LEFT JOIN `oc_attribute` `a` ON (`a`.`attribute_id` = `pa`.`attribute_id`) LEFT JOIN `oc_attribute_description` `ad` ON (`ad`.`attribute_id` = `pa`.`attribute_id` AND `ad`.`language_id` = '3') WHERE `pa`.`language_id` = '3' AND `pa`.`product_id` IN (113087,113990,113991,113992,113994,152800,184258,184275,184276,184279,184280,184281,184292,184293,184295,184343,184383,184393,184394,184421,184432,184433,184444,184452,184463,184464,184465,184493,184508,184561,184563,184564,184615,184659,184660,184710,184711,184717,184718,184745,184783,184784,184786,184787,184789,184792,184817,184824,184825,184849,184885,184886,184911,184923,184949,184954,184970,184976,184992,185004,185029,185031,185037,185044,185046,185056,185057,185058,185060,185084,185087,185088,185099,185100,185101,185103,185104,185105,185106,185107,185117,185118,185120,185123,185155,185168,185169,185212,185213,185214,185221,185266,185268,185269,185270,185272,185288,185289,185317,185319,185331,185335,185346,185349,185350,185351,185364,185366,185367,185368,185389,185401,185410,185412,185413,185414,185415,185433,185434,185440,185442,185443,185449,185480,185481,185506,185512,185517,185522,185538,185561,185590,185591,185614,185621,185622,185623,185624,185739,185756,185776,185794,185795,185803,185806,185808,185821,185822,185825,185827,185829,185830,185831,185835,185836,185839,185845,185846,185847,185864,185865,185870,185883,185898,185906,185919,185925,185939,185948,185970,185974,185975,185978,185979,185997,186006,186013,186047,186048,186050,186051,186052,186054,186056,186059,186063,186073,186076,186109,186116,186119,186133,186148,186149,186183,186202,186203,186204,186206,186207,186212,186236,186238,186239,186240,186241,186245,186246,186249,186250,186251,186252,186255,186256,186266,186276,186277,186278,186319,186324,186333,186335,186336,186338,186340,186344,186346,186347,186348,186352,186358,186364,186367,186375,186378,186379,186381,186384,186385,186392,186395,186396,186401,186404,186406,186407,186416,186417,186431,186479,186480,186481,186482,186483,186488,186496,186518,186520,186535,186536,186561,186562,186565,186625,186724,186752,186753,186755,186812,186869,186870,187351,187352,187353,187575) AND `pa`.`attribute_id` IN (4979,311) GROUP BY `pa`.`attribute_id`, `pa`.`text` ORDER BY `a`.`sort_order`
SELECT * FROM oc_banner b LEFT JOIN oc_banner_image bi ON (b.banner_id = bi.banner_id) WHERE b.banner_id = '7' AND b.status = '1' AND bi.language_id = '3' ORDER BY bi.sort_order ASC
SELECT * FROM oc_banner b LEFT JOIN oc_banner_image bi ON (b.banner_id = bi.banner_id) WHERE b.banner_id = '18' AND b.status = '1' AND bi.language_id = '3' ORDER BY bi.sort_order ASC
SELECT * FROM oc_banner b LEFT JOIN oc_banner_image bi ON (b.banner_id = bi.banner_id) WHERE b.banner_id = '6' AND b.status = '1' AND bi.language_id = '3' ORDER BY bi.sort_order ASC
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '0' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '65' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '66' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '519' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '76' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '85' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '93' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '108' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '266' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '131' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '133' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '137' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '151' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '671' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '152' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '234' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '245' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '165' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '164' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '166' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '443' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '161' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '160' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '220' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '232' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '561' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '652' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '615' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '642' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '606' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '566' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '625' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '596' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '619' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '296' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1370' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1480' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1490' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1448' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1383' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1414' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1403' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1408' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1427' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1371' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1396' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1420' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1439' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1441' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1451' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1384' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)
SELECT * FROM oc_category c LEFT JOIN oc_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN oc_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1484' AND cd.language_id = '3' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)