这是编写此 codeigniter 查询的最佳方式吗?
$where = array('registration_status_fk' => 2, 'membership.membership_type_id' => 4);
$join = array('membership', 'membership.id=members.id');
$query = $this->join($join[0], $join[1])->get_where($this->tbl_name, $where);
还是有更好的方法来完成我正在做的事情?
这是我得到的错误
Error Number: 1054
Unknown column 'membership.membership_type_id' in 'where clause'
SELECT * FROM (`member`) WHERE `registration_status_fk` = 2 AND `membership`.`membership_type_id` = 4
Filename: C:\xampp\htdocs\OAWA\system\database\DB_driver.php
Line Number: 330