Skip to content
Advertisement

Tag: database

Unknown column in field list when use join MySQL

I have 2 tables like this: product_master: campaign_product: This tables link with foreign key product_id I want to get all product data with campaign_code column. I don’t want to get 2 campaign_product row with same product_id. So I use this query: It got error when I run: Error in query (1054): Unknown column ‘dmspro_mys_campaign_product.campaign_code’ in ‘field list’ How I can

Advertisement