SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) 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 )
WHERE 1=1 AND (
wp_term_relationships.term_taxonomy_id IN (11,16,22,21082,21083,21084,21085,21086,21087,21157,21189)
) AND (
( wp_postmeta.meta_key = 'last_cron_date' AND wp_postmeta.meta_value LIKE '{19c3e528828c78c8336e8cc5b6573224ee494abaace6e83e1cef58037a9c11d6}09/02/24{19c3e528828c78c8336e8cc5b6573224ee494abaace6e83e1cef58037a9c11d6}' )
AND
mt1.meta_key = 'trending_views'
) AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) AND wp_posts.ID NOT IN ( SELECT ID FROM wp_posts WHERE post_type IN ('post','page','attachment','job_listing','podcasts','industry-news','product','business-directory','testimonial') AND ID IN ( SELECT post_id FROM wp_postmeta pm WHERE pm.meta_key = 'groups-read' AND pm.meta_value NOT IN (0) AND pm.meta_value IN ( SELECT group_id FROM wp_groups_group ) AND post_id NOT IN ( SELECT post_id FROM wp_postmeta pm WHERE pm.meta_key = 'groups-read' AND pm.meta_value IN (0) ) ) ) AND wp_posts.ID IN ( SELECT ID FROM wp_posts WHERE ID NOT IN ( SELECT post_id FROM wp_postmeta WHERE wp_postmeta.meta_key = 'groups-groups_read_post' ) UNION ALL SELECT post_id AS ID FROM wp_postmeta WHERE wp_postmeta.meta_key = 'groups-groups_read_post' AND wp_postmeta.meta_value IN ('') )
GROUP BY wp_posts.ID
ORDER BY wp_posts.menu_order, CONVERT(mt1.meta_value, signed) DESC,wp_posts.post_date DESC
LIMIT 3410, 10
No news found.