问题是什么?代码: $this->db->select('items.*, tags.name, users.user_name'); $this->db->from('items'); $this->db->join('tags', 'tag = tags.id'); $this->db->join('users', 'id_user = users.id'); $this->db->where('items', array('id' => $id)); $query = $this->db->get(); return $query->row_array();打印 :错误编号:1054“ where子句”中的未知列“ items”SELECT `items`.*, `tags`.`name`, `users`.`user_name` FROM `items` JOIN `tags` ON `tag` = `tags`.`id` JOIN `users` ON `id_user` = `users`.`id` WHERE `items` = Array文件名:C:/xampp/htdocs/system/database/DB_driver.php行号:691
添加回答
举报
0/150
提交
取消