-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sphinx Query Error #9
Comments
Unable to reproduce. |
Have the same error, the reason is bracket $query->select('id')
->from('catalog_place')
->match($search)
->andWhere(['location_id'=>Location::getLocation()->id])
->all(); generates: SELECT `id` FROM `catalog_place` WHERE (MATCH('search')) AND (`location_id`=536) and get error:
but this work fine: SELECT `id` FROM `catalog_place` WHERE MATCH('search') AND `location_id`=536 |
where() is success; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Work
Dont't work
SQLSTATE[42000]: Syntax error or access violation: 1064 sphinxql: syntax error, unexpected '(', expecting IDENT (or 5 other tokens) near '(
product_category
=5) AND (product_properties
=5) LIMIT 40'The SQL being executed was: SELECT
id
,title
,price
,product_category
,product_properties
FROMproducts
WHERE (product_category
=5) AND (product_properties
=5) LIMIT 40The text was updated successfully, but these errors were encountered: