Hi, I have used this instructions in a controller's method :

$data = $this->Lavorus->sql("SELECT * FROM lavori ORDER BY RAND() LIMIT
1");
$this->set('data',$data);

But, the sql debug of CakePHP give me an error :
1064: Errore di sintassi nella query SQL vicino a 'sql' linea 1.
Can you help me ?
Thanks !


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

Reply via email to