![]() |
Problem with double join the same table with Active Record - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Problem with double join the same table with Active Record (/showthread.php?tid=56348) |
Problem with double join the same table with Active Record - El Forum - 12-12-2012 [eluser]amatotax[/eluser] Hello ppl, I've tried diffrent solutions, noone works fine :/ My query: Code: public function get_accepted_relations($uid) If I put Code: ->join('relations', 'relations.recipient = users.id') after first JOIN I'm gettin the following error: Quote:Error Number: 1066 Even Code: ->join('relations', 'relations.recipient = users.id', 'LEFT') Without the second JOIN it works perfect! Any ideas dear CI users how to double join the same table? Problem with double join the same table with Active Record - El Forum - 12-12-2012 [eluser]amatotax[/eluser] Youupiee made it ![]() Code: $this->db |