Scientific Research
FST CENTRES
SHARED FST CENTRES
OTHER CENTRES
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) INNER JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) INNER JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) INNER JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id ) INNER JOIN wp_postmeta AS mt5 ON ( wp_posts.ID = mt5.post_id ) WHERE 1=1 AND wp_posts.ID NOT IN (26735,24547,24290,20814,18638,10680,2307,2067,2066,2065,2064,2062,2061,1775,1774,1773,1772,1771,1770,1726,1714,1656,1354) AND (
wp_postmeta.meta_key = 'noticia_ordem'
AND
(
( mt1.meta_key = 'noticia_tipo' AND mt1.meta_value LIKE '{65699b7e5ecff0d3ae90d59f27b02c48e055419a2b982bfb06da37416a7c205e}:\"noticia\";{65699b7e5ecff0d3ae90d59f27b02c48e055419a2b982bfb06da37416a7c205e}' )
AND
( mt2.meta_key = 'noticia_localizacao_navegacao' AND mt2.meta_value LIKE '{65699b7e5ecff0d3ae90d59f27b02c48e055419a2b982bfb06da37416a7c205e}:\"investigacao\";{65699b7e5ecff0d3ae90d59f27b02c48e055419a2b982bfb06da37416a7c205e}' )
AND
mt3.meta_key = 'noticia_ordem'
AND
mt4.meta_key = 'noticia_data_publicacao'
AND
( mt5.meta_key = 'noticia_data_publicacao' AND mt5.meta_value <= '20240907' )
)
) AND ((wp_posts.post_type = 'noticia' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled'))) GROUP BY wp_posts.ID ORDER BY CAST(mt3.meta_value AS CHAR) DESC, CAST(mt4.meta_value AS CHAR) DESC LIMIT 0, 3