Welcome Guest, Not a member yet? Register   Sign In
Help with join query
#2

I'm going to guess that you have an 'id' field in both tables. The ambiguous error means that you've used a column name that appears in more than one table and it doesn't know where to look, so make sure to call out the table with the ambiguous column and you'll be fine.

Code:
$this->db->order_by('projects.id', 'desc');
Reply


Messages In This Thread
Help with join query - by agrc - 05-30-2016, 08:21 PM
RE: Help with join query - by kilishan - 05-30-2016, 08:47 PM
RE: Help with join query - by agrc - 05-31-2016, 04:52 PM
RE: Help with join query - by kilishan - 05-31-2016, 05:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB