okay checked with ur code ?? got very strange result…
On all pages where featured post is visible I get:
<div style="display:none;">SELECT * FROM wp_term_relationships WHERE term_taxonomy_id = 354 ORDER BY rand() LIMIT 1</div><div style="display:none;">We have data!</div>Array
(
[object_id] => 12
[term_taxonomy_id] => 354
)
<pre style="display:none;">1</pre>
<h3>Featured Post</h3> <h2><a href="https://www.sandrophoto.com/2007/10/05/budapest-hungary/" rel="bookmark" title="Featured Post: Budapest, Hungary">Budapest, Hungary</a></h2> <p>I spent 2 years of my life in Budapest, I just wish I did more landscape photography like this… It’s an amazing city with beautiful architecture and pretty scenery.</p>
<p>The first photo is a view from my dormitory room, around 6:00 AM - night of heavy drinking and no sleep, and the scene set a good mood for the hangover day <img src='https://www.sandrophoto.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="https://www.sandrophoto.com/wp-content/gallery/landscapes/SuperNova.jpg" title="Budapest sky at 6:00AM. Insomnia was bothering me whole year, so I've seen some of the most beautiful paintings of nature :)" rel="lightbox[singlepic10]" ><img class="ngg-singlepic" src="https://www.sandrophoto.com/wp-content/plugins/nextgen-gallery/nggshow.php?pid=10&width=336&height=&mode=" alt="Budapest, Hungary" title="Budapest, Hungary" /></a> <a href="https://www.sandrophoto.com/2007/10/05/budapest-hungary/#more-12" class="more-link">more photos ?</a></p>
on the page where it fails:
<div style="display:none;">SELECT * FROM wp_term_relationships WHERE term_taxonomy_id = 354 ORDER BY rand() LIMIT 1</div><div style="display:none;">We have data!</div>Array
(
[object_id] => 38
[term_taxonomy_id] => 354
)
<pre style="display:none;">1</pre>