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 the id field in the member_personal table?
1 Answer