Actually I have 1 query but I am unable to convert it into CakePHP query format.
$result = \"select * from esl_userresults where
You can use AppModel's query() function to run SQL query .
AppModel
query()
ex : $this->ModelName->query('SELECT * FROMtable'); this will return an array of selected records . You can pass simple query as well as complex join query .
$this->ModelName->query('SELECT * FROM
');