Potential Bug In ActiveRecord when doing compound join statement - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Potential Bug In ActiveRecord when doing compound join statement (/showthread.php?tid=25178) |
Potential Bug In ActiveRecord when doing compound join statement - El Forum - 12-03-2009 [eluser]blasto333[/eluser] View Database Schema Code: $this->db->from('sales'); produces: Code: SELECT * FROM (`phppos_sales`) Notice how the second condition in the 2nd join doesn't have prefixes on the tables. Therefore the query fails. How can I achieve what I am trying to do? |