SELECTc0_.idASid_0,c0_.nameASname_1,c0_.slugASslug_2,c0_.lftASlft_3,c0_.lvlASlvl_4,c0_.rgtASrgt_5,c0_.image_pathASimage_path_6,c0_.banner_image_pathASbanner_image_path_7,c0_.is_activeASis_active_8FROMcategoryc0_WHERE (c0_.is_active=1AND (((c0_.rgt<?ANDc0_.lft>?ANDc0_.tree_root=?) ORc0_.id=?))) AND (c0_.deleted_atISNULL) ORDER BYc0_.tree_rootASC,c0_.lftASC
SELECTc0_.idASid_0,c0_.nameASname_1,c0_.slugASslug_2,c0_.lftASlft_3,c0_.lvlASlvl_4,c0_.rgtASrgt_5,c0_.image_pathASimage_path_6,c0_.banner_image_pathASbanner_image_path_7,c0_.is_activeASis_active_8FROMcategoryc0_WHERE
(
c0_.is_active=1AND (
(
(
c0_.rgt<?ANDc0_.lft>?ANDc0_.tree_root=?
)
ORc0_.id=?
)
)
)
AND (c0_.deleted_atISNULL)
ORDER BYc0_.tree_rootASC,c0_.lftASC
SELECTc0_.idASid_0,c0_.nameASname_1,c0_.slugASslug_2,c0_.lftASlft_3,c0_.lvlASlvl_4,c0_.rgtASrgt_5,c0_.image_pathASimage_path_6,c0_.banner_image_pathASbanner_image_path_7,c0_.is_activeASis_active_8FROMcategoryc0_WHERE (c0_.is_active=1AND (((c0_.rgt<6ANDc0_.lft>5ANDc0_.tree_root=4) ORc0_.id=12))) AND (c0_.deleted_atISNULL) ORDER BYc0_.tree_rootASC,c0_.lftASC;
SELECTc0_.idASid_0FROMproductp1_INNER JOINcategoryc0_ONp1_.category_id=c0_.idAND (c0_.deleted_atISNULL) AND (c0_.is_active=1) WHERE (p1_.is_active=1ANDp1_.brand_id=?ANDp1_.category_idIN (?)) AND (p1_.deleted_atISNULL)
SELECTc0_.idASid_0FROMproductp1_INNER JOINcategoryc0_ONp1_.category_id=c0_.idAND (c0_.deleted_atISNULL)
AND (c0_.is_active=1)
WHERE
(
p1_.is_active=1ANDp1_.brand_id=?ANDp1_.category_idIN (?)
)
AND (p1_.deleted_atISNULL)
SELECTc0_.idASid_0FROMproductp1_INNER JOINcategoryc0_ONp1_.category_id=c0_.idAND (c0_.deleted_atISNULL) AND (c0_.is_active=1) WHERE (p1_.is_active=1ANDp1_.brand_id=1ANDp1_.category_idIN (12)) AND (p1_.deleted_atISNULL);
SELECTCOUNT(DISTINCTp0_.id) ASsclr_0FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL) AND (p1_.is_active=1) WHERE (p0_.is_active=1ANDp1_.category_idIN (NULL) ANDp1_.brand_idIN (?)) AND (p0_.deleted_atISNULL)
SELECTCOUNT(DISTINCTp0_.id) ASsclr_0FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL)
AND (p1_.is_active=1)
WHERE
(
p0_.is_active=1ANDp1_.category_idIN (NULL)
ANDp1_.brand_idIN (?)
)
AND (p0_.deleted_atISNULL)
SELECTCOUNT(DISTINCTp0_.id) ASsclr_0FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL) AND (p1_.is_active=1) WHERE (p0_.is_active=1ANDp1_.category_idIN (NULL) ANDp1_.brand_idIN (1)) AND (p0_.deleted_atISNULL);
SELECTDISTINCTp0_.idASid_0FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL) AND (p1_.is_active=1) WHERE (p0_.is_active=1ANDp1_.category_idIN (NULL) ANDp1_.brand_idIN (?)) AND (p0_.deleted_atISNULL) LIMIT21
SELECTDISTINCTp0_.idASid_0FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL)
AND (p1_.is_active=1)
WHERE
(
p0_.is_active=1ANDp1_.category_idIN (NULL)
ANDp1_.brand_idIN (?)
)
AND (p0_.deleted_atISNULL)
LIMIT21
SELECTDISTINCTp0_.idASid_0FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL) AND (p1_.is_active=1) WHERE (p0_.is_active=1ANDp1_.category_idIN (NULL) ANDp1_.brand_idIN (1)) AND (p0_.deleted_atISNULL) LIMIT21;
SELECTMIN(p0_.final_price) ASsclr_0,MAX(p0_.final_price) ASsclr_1FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL) AND (p1_.is_active=1) WHERE (p0_.is_active=1ANDp1_.category_idIN (NULL) ANDp1_.brand_idIN (?)) AND (p0_.deleted_atISNULL)
SELECTMIN(p0_.final_price) ASsclr_0,MAX(p0_.final_price) ASsclr_1FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL)
AND (p1_.is_active=1)
WHERE
(
p0_.is_active=1ANDp1_.category_idIN (NULL)
ANDp1_.brand_idIN (?)
)
AND (p0_.deleted_atISNULL)
SELECTMIN(p0_.final_price) ASsclr_0,MAX(p0_.final_price) ASsclr_1FROMproduct_variantp0_INNER JOINproductp1_ONp0_.product_id=p1_.idAND (p1_.deleted_atISNULL) AND (p1_.is_active=1) WHERE (p0_.is_active=1ANDp1_.category_idIN (NULL) ANDp1_.brand_idIN (1)) AND (p0_.deleted_atISNULL);
SELECTc0_.idASid_0,c0_.nameASname_1,c0_.slugASslug_2,c0_.descriptionASdescription_3,c0_.lftASlft_4,c0_.lvlASlvl_5,c0_.rgtASrgt_6,c0_.image_pathASimage_path_7,c0_.banner_image_pathASbanner_image_path_8,c0_.is_activeASis_active_9,c0_.meta_titleASmeta_title_10,c0_.meta_descriptionASmeta_description_11,c0_.meta_keywordsASmeta_keywords_12,c0_.created_atAScreated_at_13,c0_.updated_atASupdated_at_14,c0_.deleted_atASdeleted_at_15,c0_.tree_rootAStree_root_16,c0_.parent_idASparent_id_17FROMcategoryc0_WHERE (c0_.lft<=5ANDc0_.rgt>=6ANDc0_.tree_root=?) AND (c0_.deleted_atISNULL) ORDER BYc0_.lftASC
SELECTc0_.idASid_0,c0_.nameASname_1,c0_.slugASslug_2,c0_.descriptionASdescription_3,c0_.lftASlft_4,c0_.lvlASlvl_5,c0_.rgtASrgt_6,c0_.image_pathASimage_path_7,c0_.banner_image_pathASbanner_image_path_8,c0_.is_activeASis_active_9,c0_.meta_titleASmeta_title_10,c0_.meta_descriptionASmeta_description_11,c0_.meta_keywordsASmeta_keywords_12,c0_.created_atAScreated_at_13,c0_.updated_atASupdated_at_14,c0_.deleted_atASdeleted_at_15,c0_.tree_rootAStree_root_16,c0_.parent_idASparent_id_17FROMcategoryc0_WHERE
(
c0_.lft<=5ANDc0_.rgt>=6ANDc0_.tree_root=?
)
AND (c0_.deleted_atISNULL)
ORDER BYc0_.lftASC
SELECTc0_.idASid_0,c0_.nameASname_1,c0_.slugASslug_2,c0_.descriptionASdescription_3,c0_.lftASlft_4,c0_.lvlASlvl_5,c0_.rgtASrgt_6,c0_.image_pathASimage_path_7,c0_.banner_image_pathASbanner_image_path_8,c0_.is_activeASis_active_9,c0_.meta_titleASmeta_title_10,c0_.meta_descriptionASmeta_description_11,c0_.meta_keywordsASmeta_keywords_12,c0_.created_atAScreated_at_13,c0_.updated_atASupdated_at_14,c0_.deleted_atASdeleted_at_15,c0_.tree_rootAStree_root_16,c0_.parent_idASparent_id_17FROMcategoryc0_WHERE (c0_.lft<=5ANDc0_.rgt>=6ANDc0_.tree_root=4) AND (c0_.deleted_atISNULL) ORDER BYc0_.lftASC;