"Column [...] in where clause is ambiguous" error 1052 from CodeIgniter query containing JOINs clauses
here is the exact error: Error Number: 1052 Column 'id' in where clause is ambiguous SELECT * FROM (`membership_personal`) JOIN `membership_account` ON `membership_account`.`memberid` = `membership_personal`.`id` JOIN `swapaccount` ON `swapaccount`.`memberid` = `membership_account`.`memberid` WHERE `id` = '5' Filename: /home/phpgod/public_html/johnnyarias/ci_website/models/generalfeaturesmodel.php Line Number: 57 I know that it has to do with the id field being present in multiple tables of the join. So my question is how do make sure that the id field in the where clause is applied only to th
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.