I have been trying to use Yii-Sphinx extension and its working fine when i used a simple query but when i try to use left join then it does not work. It returns the below error. I have tested many queries but not working. I am using Yii-Sphinx extension
SQLSTATE[42000]: Syntax error or access violation: 1064 sphinxql: syntax
error, unexpected IDENT, expecting $end near 'LEFT JOIN specs ON specs.id =
listing.specs_id'
The SQL being executed was: SELECT specs.id, listing.title,listing.specs_id,
listing.reg_no, listing.price, listing.status, listing.featured FROM listing
LEFT JOIN specs ON specs.id = listing.specs_id
Error Info: Array
(
[0] => 42000
[1] => 1064
[2] => sphinxql: syntax error, unexpected IDENT, expecting $end near
'LEFT JOIN specs ON specs.id = listing.specs_id'
)
here is my query
SELECT specs.id, listing.title,listing.specs_id, listing.reg_no, listing.price, listing.status, listing.featured FROM listing LEFT JOIN specs ON specs.id = listing.specs_id