próbuję zrobić takie zapytanie w modelu:
SELECT u.id AS u.id, 1 AS type FROM CUser AS u
ale jak dodaje 1 as type tak jak mam poniżej, pojawia mi się błąd mówiący, że nie ma kolumny 1 w tabeli CUser.
$select = $this->select() ->setIntegrityCheck(false) return $this->fetchAll($select);
Wiem, że zapytanie z tym 1 as type jest bez sensu
