通过执行Test::findBySql($sql)->all()异常
//web/config/db.php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=192.168.1.160;dbname=yii', 'username' => 'yii', 'password' => '123456', 'charset' => 'utf8', ]; <?php //.....省略 $sql="SELECT * FROM test id=1"; Test::findBySql($sql)->all(); //出现异常怎么回事儿。