{exp:query sql="SELECT v.entry_id, v.url_title, v.title, v.entry_date, hs.photo, hs.filelength, hs.status, hs.private FROM exp_channel_titles v, exp_horseshow_videos hs
WHERE v.author_id = {segment_3}
AND v.channel_id = 5
AND hs.entry_id = v.entry_id
LIMIT 0,4"}
{if no_results}No videos found{/if}
{if private == "no" OR segment_3 == logged_in_member_id}
<li>
{if "{photo}"}
<a href="http://{path=view}/{url_title}" title="{title}">{photo}</a>
{if:else}
<a href="http://{path=view}/{url_title}" title="{title}">{site_url}images/video_thumbs/not-set.png</a>
{/if}
<div>
<strong><a href="http://{path=view}/{url_title}">{title}</a></strong>{if logged_in_member_id == "{segment_3}"} <a href="#">(edit)</a>{/if}
<span>{if filelength}{filelength format="%i:%s"}{/if}</span>
{if private == "yes"}
<span>PRIVATE</span>{/if}
</div>
</li>
{/if}
{/exp:query}When I run the query in mysql, it works fine. Either returns a result or returns num_rows = 0. But no matter whether it returns rows or not, the {if no_results} tag doesn’t work. Any ideas?