The following code:
$listFriends = "3,7,146,18,14";
$this->User->findAll("User.active = 1 AND User.id IN ($listFriends)",
null, "lastlogin DESC",null,null,0);
... should return just 5 records from the Users table. However, i get 7
records and for some reason a triplicate of 146.
Can anyone shed some light on this?
I'm using version 1.1.8.3544
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---