Hi there.
I can’t get this query to run inside a weblog tag.
{exp:weblog:entries weblog="blog" limit="1" author_id="CURRENT_USER"}
{exp:query sql="SELECT field_id_17 FROM exp_weblog_data WHERE entry_id = '{custom_entry_id}' "}
{field_id_17}
{/exp:query}
{/exp:weblog:entries}When I remove the the weblog tag and replaces the {custom_entry_id} with the number, it works.
Thanks for your help.