$lg = $this->Log->findAll('Log.log_user_id='.$user[0]['User']['id'], 'Log.created' DESC');
$this->set('lg', $lg);
Returns SQL error
Need to sort the findAll by created DESC (most recent on top)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is how I would do what you are asking:
Or you should be able to do it like this:
What SQL Error message are you getting? It should have printed it out.