no, I do not have that installed, but if I telnet into my server and paste the query directly into mysql, it works fine ... its something in php.
-
MODX Staff
- 1,535 Posts
Hmm, strange problem indeed. What is your PHP code for defining the query? I’m siding with it being a problem in the PHP code as well.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
I haven’t tested this logic myself, but have you tested that the queries are being formed properly by printing them out? The if (!$v) test jumps out at me as a possible problem, since you have defined $v earlier (blank, but defined), which might make the query jump right to the AND logic instead of the original LIKE statement. That wouldn’t explain the specific error that you say you’re receiving, but at least viewing the queries as they’re formed in PHP would be helpful to debug any error in logic that might be hiding in plain sight.