Last SQL-Query: SELECT SQL_CALC_FOUND_ROWS  hH3672yj6z_posts.ID
					 FROM hH3672yj6z_posts  JOIN hH3672yj6z_icl_translations wpml_translations
							ON hH3672yj6z_posts.ID = wpml_translations.element_id
								AND wpml_translations.element_type = CONCAT(‘post_’, hH3672yj6z_posts.post_type) 
					 WHERE 1=1  AND hH3672yj6z_posts.post_type = ‘post’ AND ((hH3672yj6z_posts.post_status = ‘publish’)) AND ( ( ( wpml_translations.language_code = ‘en’ OR (
					wpml_translations.language_code = ‘en’
					AND hH3672yj6z_posts.post_type IN ( ‘resources’ )
					AND ( ( 
			( SELECT COUNT(element_id)
			  FROM hH3672yj6z_icl_translations
			  WHERE trid = wpml_translations.trid
			  AND language_code = ‘en’
			) = 0
			 ) OR ( 
			( SELECT COUNT(element_id)
				FROM hH3672yj6z_icl_translations t2
				JOIN hH3672yj6z_posts p ON p.id = t2.element_id
				WHERE t2.trid = wpml_translations.trid
				AND t2.language_code = ‘en’
                AND (
                    p.post_status = ‘publish’ OR p.post_status = ‘private’ OR 
                    ( p.post_type=’attachment’ AND p.post_status = ‘inherit’ )
                )
			) = 0 ) ) 
				) ) AND hH3672yj6z_posts.post_type  IN (‘post’,’page’,’attachment’,’wp_block’,’wp_template’,’wp_template_part’,’wp_navigation’,’wpcf7_contact_form’,’resources’ )  ) OR hH3672yj6z_posts.post_type  NOT  IN (‘post’,’page’,’attachment’,’wp_block’,’wp_template’,’wp_template_part’,’wp_navigation’,’wpcf7_contact_form’,’resources’ )  )
					 
					 ORDER BY hH3672yj6z_posts.post_date DESC
					 LIMIT 0, 1