Événements

SELECT SQL_CALC_FOUND_ROWS pq4_posts.ID FROM pq4_posts INNER JOIN pq4_postmeta ON ( pq4_posts.ID = pq4_postmeta.post_id ) INNER JOIN pq4_postmeta AS mt1 ON ( pq4_posts.ID = mt1.post_id ) JOIN pq4_icl_translations wpml_translations ON pq4_posts.ID = wpml_translations.element_id AND wpml_translations.element_type = CONCAT('post_', pq4_posts.post_type) WHERE 1=1 AND ( pq4_postmeta.meta_key = 'activity-datesort' AND ( ( mt1.meta_key = 'activity-monthfilter' AND mt1.meta_value = '202105' ) ) ) AND pq4_posts.post_type = 'propqc_activity' AND (pq4_posts.post_status = 'publish' OR pq4_posts.post_status = 'acf-disabled') AND ( ( ( wpml_translations.language_code = 'fr' OR 0 ) AND pq4_posts.post_type IN ('post','page','attachment','wp_block','propqc_activity','propqc_slide','propqc_chantier','propqc_project','propqc_document','propqc_partner' ) ) OR pq4_posts.post_type NOT IN ('post','page','attachment','wp_block','propqc_activity','propqc_slide','propqc_chantier','propqc_project','propqc_document','propqc_partner' ) ) GROUP BY pq4_posts.ID ORDER BY pq4_postmeta.meta_value+0 ASC LIMIT 0, 4