Error executing query:
SELECT g.id, g.no, g.creation, g.sorting, g.cust_id, g.ref_image, g.external_name, g.password AS gal_pw, c.password AS cust_pw FROM bp_customers AS c JOIN bp_galleries AS g ON g.cust_id = c.id WHERE c.public = "yes";
Unknown column 'c.public' in 'where clause'