Forum Discussion

ryancjmp's avatar
2 years ago

liql query for message replies

I'm trying to get the replies from an event via liql.  My query looks like  <#assign comments = liqladmin("SELECT * FROM messagess WHERE parent.id = '25324') /> This query is returning an empty a...
  • ryancjmp's avatar
    2 years ago

    Ok I think I've solved this.  I had to include a board id in order for it to work.

    SELECT * FROM messages WHERE parent.id = '25324' AND board.id = 'the-board-where-the-parent-lives'

    This query is now returning what I expected.

    I didn't see this requirement in the documentation anywhere.  Did I just miss it?