limit problem

I am having a problem with limit not working

im using it like this

where am i going wrong??

public function withdrawTickets($groups,$number)


	$tickets=new CActiveDataProvider('Tickets',array(


					'condition'=>'games_id=:games_id and user_id= :user_id and group_id is NULL  ',

					'limit'=>5; << this does not work




					foreach($tickets->data as $value)






Try to set var $limit.

it is very strange but works.

$limit = 3;

        $dataProvider=new CActiveDataProvider('Properties', array(


									   'condition'=>' featured=1 ',

									   'limit'=> $limit,





In your example you put a semicolon ";" after the number 5… there should be a comma "," instead