yellow1912:
Try this in your phpmyadmin, let me know if you get the same error:
update products_restock_request_customers r set r.zen_customers_id = (SELECT customers_id from customers c where c.customers_email_address = r.email_address)
PS: If you have prefix for your zen table, you may have to use this:
update zen_products_restock_request_customers r set r.zen_customers_id = (SELECT customers_id from zen_customers c where c.customers_email_address = r.email_address)
// Replace zen_ by your prefix name (if you use a different one)
I used the first query you suggested since I don't have a table prefix, and got this error:
Unknown column 'r.zen_customers_id' in 'field list'
I then removed the zen_ prefix from zen_customers_id in the query, tried it again and got this error:
#1054 - Unknown column 'r.customers_id' in 'field list'
I checked my products_restock_request_customers table, and there's no customers_id field in the table, although it does have an ID field. I then changed r.customers_id to r.ID and ran the query without an error.
Should the products_restock_request_customers table have a customers_id field? Here's the code from the "new install" SQL packaged with alpha 3.5:
DROP TABLE IF EXISTS products_restock_request_customers;
CREATE TABLE products_restock_request_customers (
ID int(10) NOT NULL auto_increment,
name varchar (255) NOT NULL,
email_address varchar (255) NOT NULL,
PRIMARY KEY (ID)
) ENGINE=MyISAM;
Thanks,
Alan