Please help with update query to insert data into one table from another with matching criteria
UPDATE table1 b INNER JOIN horses h
ON b.table1.stallid = h.dogs.dogid
SET b.table1.stallid = h.dogs.dogid
AND b.table1.incentid = '23'
WHERE h.dogs.bcb = 'BCB'
Error
> 1054 - Unknown column 'h.dogs.bcb' in 'where clause'
That column bcb is in the database and there are records in the dogs table where the column bcb = BCB