Column 'id' in WHERE clause is ambiguous using CodeIgniter's query builder [duplicate]
I get this error and I can't figure out why? Error Number: 1052 Column 'id' in where clause is ambiguous SELECT `leads`.*, `customers`.`id` AS customers_id, `customers`.`name` AS customers_name, `customers`.`company` AS customers_company, `customers`.`email` AS customers_email, `customers`.`phone` AS customers_phone, `customers`.`created_at` AS customers_created_at, `customers`.`updated_at` AS customers_updated_at, `customers`.`ip_address` AS customers_ip_addressFROM (`leads`) JOIN `customers` ON `customers`.`id` = `leads`.`customer_id` WHERE `id` = '3' AND `leads`.`id` = '1'LIMIT 1 Filename:
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.