All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Make global variable parse early?

leeaston 4 Aug 2013 14:47 question, complete

Hi Low, I've got this query, but because member_id is parsed late the query is not returning anything. Is this something Low Variables can sort out for me.

Best wishes
Lee

{exp:query sql="
SELECT exp_channel_titles.entry_id
FROM exp_channel_titles
WHERE exp_channel_titles.author_id = '{member_id}'
AND (SELECT exp_ratings.entry_id FROM exp_ratings
WHERE rating_author_id = '{member_id}') != exp_channel_titles.entry_id"}

{entry_id}
{/exp:query}

Replies

  1. Low 5 Aug 2013 07:01

    You can turn on "Early parsed member data", see http://gotolow.com/addons/low-variabl... ...which will give you an early parsed {logged_in_member_id} to work with.