Unknown column 'prod_code' in 'from clause'