SELECTt0.idASid_1,t0.lftASlft_2,t0.rgtASrgt_3,t0.levelASlevel_4,t0.root_idASroot_id_5,t0.created_atAScreated_at_6,t0.updated_atASupdated_at_7,t0.deleted_atASdeleted_at_8,t0.parent_idASparent_id_9,t0.created_byAScreated_by_10,t0.updated_byASupdated_by_11FROMcategoryt0WHEREt0.id=?AND ((t0.deleted_atISNULL) AND (t0.deleted_atISNULL))
SELECTt0.idASid_1,t0.lftASlft_2,t0.rgtASrgt_3,t0.levelASlevel_4,t0.root_idASroot_id_5,t0.created_atAScreated_at_6,t0.updated_atASupdated_at_7,t0.deleted_atASdeleted_at_8,t0.parent_idASparent_id_9,t0.created_byAScreated_by_10,t0.updated_byASupdated_by_11FROMcategoryt0WHEREt0.id=?AND (
(t0.deleted_atISNULL)
AND (t0.deleted_atISNULL)
)
SELECTt0.idASid_1,t0.lftASlft_2,t0.rgtASrgt_3,t0.levelASlevel_4,t0.root_idASroot_id_5,t0.created_atAScreated_at_6,t0.updated_atASupdated_at_7,t0.deleted_atASdeleted_at_8,t0.parent_idASparent_id_9,t0.created_byAScreated_by_10,t0.updated_byASupdated_by_11FROMcategoryt0WHEREt0.id='463'AND ((t0.deleted_atISNULL) AND (t0.deleted_atISNULL));
SELECTt0.nameASname_1,t0.descriptionASdescription_2,t0.deleted_atASdeleted_at_3,t0.localeASlocale_4,t0.idASid_5,t6.idASid_7,t6.lftASlft_8,t6.rgtASrgt_9,t6.levelASlevel_10,t6.root_idASroot_id_11,t6.created_atAScreated_at_12,t6.updated_atASupdated_at_13,t6.deleted_atASdeleted_at_14,t6.parent_idASparent_id_15,t6.created_byAScreated_by_16,t6.updated_byASupdated_by_17FROMcategory_translationt0LEFT JOINcategoryt6ONt0.id=t6.idAND ((t6.deleted_atISNULL) AND (t6.deleted_atISNULL)) WHEREt0.id=?AND ((t0.locale='ar') AND (t0.deleted_atISNULL) AND (t0.deleted_atISNULL))
SELECTt0.nameASname_1,t0.descriptionASdescription_2,t0.deleted_atASdeleted_at_3,t0.localeASlocale_4,t0.idASid_5,t6.idASid_7,t6.lftASlft_8,t6.rgtASrgt_9,t6.levelASlevel_10,t6.root_idASroot_id_11,t6.created_atAScreated_at_12,t6.updated_atASupdated_at_13,t6.deleted_atASdeleted_at_14,t6.parent_idASparent_id_15,t6.created_byAScreated_by_16,t6.updated_byASupdated_by_17FROMcategory_translationt0LEFT JOINcategoryt6ONt0.id=t6.idAND (
(t6.deleted_atISNULL)
AND (t6.deleted_atISNULL)
)
WHEREt0.id=?AND (
(t0.locale='ar')
AND (t0.deleted_atISNULL)
AND (t0.deleted_atISNULL)
)
SELECTt0.nameASname_1,t0.descriptionASdescription_2,t0.deleted_atASdeleted_at_3,t0.localeASlocale_4,t0.idASid_5,t6.idASid_7,t6.lftASlft_8,t6.rgtASrgt_9,t6.levelASlevel_10,t6.root_idASroot_id_11,t6.created_atAScreated_at_12,t6.updated_atASupdated_at_13,t6.deleted_atASdeleted_at_14,t6.parent_idASparent_id_15,t6.created_byAScreated_by_16,t6.updated_byASupdated_by_17FROMcategory_translationt0LEFT JOINcategoryt6ONt0.id=t6.idAND ((t6.deleted_atISNULL) AND (t6.deleted_atISNULL)) WHEREt0.id=463AND ((t0.locale='ar') AND (t0.deleted_atISNULL) AND (t0.deleted_atISNULL));
SELECTCASEWHENe.collection_idISNOTNULLTHEN'collection'ELSE'entry'ENDas_type,CASEWHENe.collection_idISNOTNULLTHENe.collection_idELSEe.idENDas_id,COUNT(e.id) ASentriesCount,e.idasactiveEntryId,e.view_order,DATE(e.published_at) aspublishDate,_rankFROM (SELECTe0_.idASid,e0_.collection_idAScollection_id,e0_.published_atASpublished_at,e0_.view_orderASview_order,e0_.published_atAS_rankFROMentrye0_LEFT JOINcollectionc1_ONe0_.collection_id=c1_.idAND (c1_.deleted_atISNULL) AND (c1_.deleted_atISNULL) LEFT JOINentry_authore3_ONe0_.id=e3_.entry_idLEFT JOINauthora2_ONa2_.id=e3_.author_idAND (a2_.deleted_atISNULL) AND (a2_.deleted_atISNULL) LEFT JOINentry_categorye5_ONe0_.id=e5_.entry_idLEFT JOINcategoryc4_ONc4_.id=e5_.category_idAND (c4_.deleted_atISNULL) AND (c4_.deleted_atISNULL) WHERE ((e0_.is_published=1ANDe0_.is_banned=0) AND (c1_.is_published=1ORc1_.is_publishedISNULL) AND (a2_.is_enabled=1ORa2_.is_enabledISNULL) ANDc4_.id=?) AND (e0_.is_draft=0) AND (e0_.locale='ar') AND (e0_.published_at<=CURRENT_TIMESTAMP) AND (e0_.deleted_atISNULL) AND (e0_.deleted_atISNULL) ORDER BY_rankDESC,e0_.idDESCLIMIT1500) eGROUP BY_type,_idORDER BY_rankDESCLIMIT20
SELECTCASEWHENe.collection_idISNOTNULLTHEN'collection'ELSE'entry'ENDas_type,CASEWHENe.collection_idISNOTNULLTHENe.collection_idELSEe.idENDas_id,COUNT(e.id) ASentriesCount,e.idasactiveEntryId,e.view_order,DATE(e.published_at) aspublishDate,_rankFROM
(
SELECTe0_.idASid,e0_.collection_idAScollection_id,e0_.published_atASpublished_at,e0_.view_orderASview_order,e0_.published_atAS_rankFROMentrye0_LEFT JOINcollectionc1_ONe0_.collection_id=c1_.idAND (c1_.deleted_atISNULL)
AND (c1_.deleted_atISNULL)
LEFT JOINentry_authore3_ONe0_.id=e3_.entry_idLEFT JOINauthora2_ONa2_.id=e3_.author_idAND (a2_.deleted_atISNULL)
AND (a2_.deleted_atISNULL)
LEFT JOINentry_categorye5_ONe0_.id=e5_.entry_idLEFT JOINcategoryc4_ONc4_.id=e5_.category_idAND (c4_.deleted_atISNULL)
AND (c4_.deleted_atISNULL)
WHERE
(
(
e0_.is_published=1ANDe0_.is_banned=0
)
AND (
c1_.is_published=1ORc1_.is_publishedISNULL
)
AND (
a2_.is_enabled=1ORa2_.is_enabledISNULL
)
ANDc4_.id=?
)
AND (e0_.is_draft=0)
AND (e0_.locale='ar')
AND (
e0_.published_at<=CURRENT_TIMESTAMP
)
AND (e0_.deleted_atISNULL)
AND (e0_.deleted_atISNULL)
ORDER BY_rankDESC,e0_.idDESCLIMIT1500
) eGROUP BY_type,_idORDER BY_rankDESCLIMIT20
SELECTCASEWHENe.collection_idISNOTNULLTHEN'collection'ELSE'entry'ENDas_type,CASEWHENe.collection_idISNOTNULLTHENe.collection_idELSEe.idENDas_id,COUNT(e.id) ASentriesCount,e.idasactiveEntryId,e.view_order,DATE(e.published_at) aspublishDate,_rankFROM (SELECTe0_.idASid,e0_.collection_idAScollection_id,e0_.published_atASpublished_at,e0_.view_orderASview_order,e0_.published_atAS_rankFROMentrye0_LEFT JOINcollectionc1_ONe0_.collection_id=c1_.idAND (c1_.deleted_atISNULL) AND (c1_.deleted_atISNULL) LEFT JOINentry_authore3_ONe0_.id=e3_.entry_idLEFT JOINauthora2_ONa2_.id=e3_.author_idAND (a2_.deleted_atISNULL) AND (a2_.deleted_atISNULL) LEFT JOINentry_categorye5_ONe0_.id=e5_.entry_idLEFT JOINcategoryc4_ONc4_.id=e5_.category_idAND (c4_.deleted_atISNULL) AND (c4_.deleted_atISNULL) WHERE ((e0_.is_published=1ANDe0_.is_banned=0) AND (c1_.is_published=1ORc1_.is_publishedISNULL) AND (a2_.is_enabled=1ORa2_.is_enabledISNULL) ANDc4_.id='463') AND (e0_.is_draft=0) AND (e0_.locale='ar') AND (e0_.published_at<=CURRENT_TIMESTAMP) AND (e0_.deleted_atISNULL) AND (e0_.deleted_atISNULL) ORDER BY_rankDESC,e0_.idDESCLIMIT1500) eGROUP BY_type,_idORDER BY_rankDESCLIMIT20;