SELECT `Support`.`id`, `Support`.`nick_name`, `Support`.`name`, `Support`.`phone`, `Support`.`active`, `Support`.`type`, `Support`.`created` FROM `chophutung_db`.`supports` AS `Support` WHERE `active` = '1' ORDER BY `type` desc | 0 | 0 | 0 | |
SELECT `ProductCategory`.`id`, `ProductCategory`.`name_eng`, `ProductCategory`.`title`, `ProductCategory`.`name_vie`, `ProductCategory`.`slug`, `ProductCategory`.`description`, `ProductCategory`.`keyword`, `ProductCategory`.`introduction_eng`, `ProductCategory`.`introduction_vie`, `ProductCategory`.`active`, `ProductCategory`.`home_page`, `ProductCategory`.`order`, `ProductCategory`.`image`, `ProductCategory`.`image_home`, `ProductCategory`.`image_icon`, `ProductCategory`.`parent_id`, `ProductCategory`.`parent_id_2`, `ProductCategory`.`parent_id_3`, `ProductCategory`.`property_category_id`, `ProductCategory`.`rght`, `ProductCategory`.`lft`, `ProductCategory`.`created`, (SELECT COUNT(*) FROM product_categories WHERE `product_categories`.`parent_id` = `ProductCategory`.`id`) AS `ProductCategory__have_sub`, (SELECT COUNT(*) FROM product_categories WHERE `product_categories`.`parent_id` IN (SELECT id FROM product_categories WHERE `product_categories`.`parent_id` = `ProductCategory`.`id`)) AS `ProductCategory__have_sub_2`, (SELECT COUNT(*) FROM products WHERE `products`.`product_category_id` IN (SELECT id FROM product_categories WHERE `product_categories`.`parent_id` IN (SELECT id FROM product_categories WHERE `product_categories`.`parent_id` = `ProductCategory`.`id`)) OR `products`.`product_category_id` IN (SELECT id FROM product_categories WHERE `product_categories`.`parent_id` = `ProductCategory`.`id`) OR `products`.`product_category_id` = `ProductCategory`.`id`) AS `ProductCategory__count_products`, `product_category`.`id`, `product_category`.`name_eng`, `product_category`.`title`, `product_category`.`name_vie`, `product_category`.`slug`, `product_category`.`description`, `product_category`.`keyword`, `product_category`.`introduction_eng`, `product_category`.`introduction_vie`, `product_category`.`active`, `product_category`.`home_page`, `product_category`.`order`, `product_category`.`image`, `product_category`.`image_home`, `product_category`.`image_icon`, `product_category`.`parent_id`, `product_category`.`parent_id_2`, `product_category`.`parent_id_3`, `product_category`.`property_category_id`, `product_category`.`rght`, `product_category`.`lft`, `product_category`.`created` FROM `chophutung_db`.`product_categories` AS `ProductCategory` LEFT JOIN `chophutung_db`.`product_categories` AS `product_category` ON (`ProductCategory`.`parent_id` = `product_category`.`id`) WHERE `ProductCategory`.`slug` = 'dem-massage-o-to' LIMIT 1 | 1 | 1 | 10 | maybe slow |
SELECT `product_categories`.`name_vie`, `product_categories`.`name_eng`, `product_categories`.`slug`, `product_categories`.`id`, `product_categories`.`image`, `product_categories`.`parent_id`, `product_categories`.`parent_id_2` FROM `chophutung_db`.`product_categories` AS `product_categories` WHERE `active` = '1' AND `product_categories`.`parent_id` = (79) | 0 | 0 | 0 | |
SELECT `Product`.`id`, `Product`.`rate`, `Product`.`count_rate`, `Product`.`name_vie`, `Product`.`slug`, `Product`.`price`, `Product`.`price_sale`, `Product`.`created`, `Product`.`image`, `Product`.`image_default`, `Product`.`product_category_id`, `Product`.`content_vie` FROM `chophutung_db`.`products` AS `Product` WHERE `Product`.`active` = '1' AND ((`Product`.`product_category_id` = 79) OR (`Product`.`product_category_id_2` = 79) OR (`Product`.`product_category_id_3` = 79) OR (`Product`.`product_category_id_4` = 79)) ORDER BY `order` asc, `created` desc LIMIT 16 | 0 | 0 | 7 | maybe slow |