I need to have a JCR SQL query of this form :
select * from jcr:content where cq:template like '%myTemplate%' and ( jcr:path like '%path1%' or jcr:path like '%path2%')
But I get an exception saying that "incorrect use of property jcr:path" Is there a quick workaround for this ? The number of paths to search in may vary each time based on user selection.