Let's say the query looks like this:
$query = 'select * from some_table LIMIT :limit'
My db->selects are the following:
a) $orders = $db->select($db->raw($query), array("limit" => '0,10'));
b) $orders = $db->select($db->raw($query), array("limit" => '10'));
a) doesn't work, but b) does. Why?
Also this doesn't work:
$query2 = 'select :col from some_table LIMIT :limit';
$orders = $db->select($db->raw($query2), array("col" => "some_col","limit" => '10'));
Am I using it the wrong way?