Welcome Guest, Not a member yet? Register   Sign In
1054 error on Join using active record for multiple sites using single code base (erkanaauth modification)
#5

[eluser]oppenheimer[/eluser]
The workaround was to build the join without the active record class. I used manual query instead: $query = $this->db->query

It was very tricky to get exactly the right syntax with correct escapes.

Code:
$query = $this->CI->db->query('SELECT roles.name FROM `' .$schoolid . '-users` JOIN roles ON `' . $schoolid . '-users`.`role_id` = roles.id where `' . $schoolid . '-users`.`id` = 1 LIMIT 1');


Messages In This Thread
1054 error on Join using active record for multiple sites using single code base (erkanaauth modification) - by El Forum - 07-26-2009, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB