Go into app/config/core.php, and turn DEBUG up to 2, so you can see the
actual SQL that's being generated.  The next thing after checking the
generated SQL, is to take it and run it inside an SQL client
application, like CocoaMySQL, and see if the results you get are the
same.  If they are, then it's a problem in your database.

Also, FYI, you can rewrite that query a little cleaner as:
$this->User->findAll(array('User.active' => 1, 'User.id' =>
array(3,7,146,18,14)), null, "lastlogin DESC",null,null,0);


--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to