So I'm trying to execute this query:
SELECT r.refID AS rID, avgrat FROM rcc r;
with Zend_Db_Select
So I have this code:
$sql = new Zend_Db_Select($db);
$sql->from(array("r" => "rcc"), array("rID" => "refID"), "avgrat");
$stmt = $db->query($sql);
$result = $stmt->fetchAll();
But then I get mysql db error which complains that Base table or view not found: 1146 table avgrat.rcc doesn't exist..
even though the table does indeed exist
what did I do wrong?