Error querying the database: Unknown column 'b.stock' in 'where clause'