Limit in Query Builder





$success_stories = Yii::app()->db->createCommand()

    ->select('id, name ,text')

    ->from('store')

    ->limit('3')

    ->where('id!=:id', array(':id'=>''))

    ->queryAll();

What is wrong with this query I am getting just 1 result even when I have many results in the table

limit() expects an integer, not a string ;)