wp-orm
wp-orm copied to clipboard
where_any queries failing
The construction of the OR clause for where_any is trimming one too many characters, thereby rendering the query invalid.
Query.php, line 477:
$where = substr($where, 0, -5) . ')';
should be
$where = substr($where, 0, -4) . ')';
Happy to submit a pull request.
I concur with kcargile. -5
should be replaced with -4
else last inverted commas "
gets trimmed, thus failing the query.