I have a problem with the Where JSON query format.
I’m trying to do the following:
&where=`{"theme:LIKE":"%theme1%","OR:theme:LIKE":"%theme2%","OR:theme:LIKE":"%theme3%"}`
But I get the SQL query:
SELECT * FROM `library_news`
WHERE `theme` LIKE "%theme1%" OR `theme` LIKE "%theme1%"theme4dc934a911170
Complete nonsense. The where query works fine with different columns:
&where=`{"theme:LIKE":"%theme1%","OR:type:LIKE":"%type1%","OR:class:LIKE":"%class1%"}`
but I can’t get it to work querying the same column.
Any help much appreciated.
PS: If it’s better to use IN instead of LIKE in this case, can/how do I use an Array of values in the Rowboat snippet call?