On Mon, Aug 17, 2009 at 11:59 AM, Dave Maharaj :: WidePixels.com <
[email protected]> wrote:

>
> I keep getting an sql error when selecting an email in my query.
>
> function __resetInfo($slug, $email, $token)
>
>  {
>  $params = array(
>      'conditions' => array('User.slug' => $slug),
>               'fields' => array('User.email' => $email, 'User.slug' =>
> $slug, 'User.reset' => $token),
>      'contain' => false
>               );
>

[..snip..]

Hrm, the conditions looks right, but the fields argument should be an array
of fields to return? Sounds like you're mixing conditions in fields.

- Gonzalo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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