I have a new checkout from trunk, yii.php works fine, yiilite throws an exception because of wrong sql statement syntax…
This is the end of the statement.
from='1' HAVING LIMIT 4
I know this might not be enough, but tell me how i can help to find this bug. There is no group in the statement and thats ok so far.
This is what i do:
$attributes = array('from'=>$id);
$criteria = new CDbCriteria;
$criteria->limit = $limit;
$criteria->offset = $offset;
$relations = Relation::model()->with('friend')->findAllByAttributes($attributes, $criteria);