Subquery returns more than 1 row on this SQL statement:
UPDATE bar
SET bar.bar_id = CONCAT(CONCAT(
(select
west.west_id
from west
where bar.west_id = west.id),
':'), (select bar.number from bar))
I want to update the column with (west.west_id):(bar.number) but when I run this I get a Subquery returns more than 1 row. If I go to one concat statement and remove (select bar.number from bar) then it runs correctly and updates to (west.west_id): but I need to include the bar.number at the end as well. Thanks!