Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Is it really:
$this->select('a.field1')->alias('alias1')->from('table1')->alias('a')
->left->join('table2')->alias('b')->on('a.id', '=', 'b.refid')->inner->join('table3')->alias('c')
->where('a.price', '='. new Expression('not quotting'))->order('c.ssa')->asc->group('a.saa')
->limit(1)->offset(0);
$query = 'SELECT `a`.`field1` AS `alias1` FROM `table1` `a` '
. 'LEFT JOIN `table2` `b` ON `a`.`id` = `b`.`refid` INNER JOIN `table3` `c` '
. 'WHERE `a`.`price` = ? ORDER BY `c`.`ssa` ASC GROUP BY `a`.`saa` LIMIT 0, 1';
$db->prepare($query); // ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question