Unknown column 'ref_vw_inventory.brandid' in 'where clause'