Prova a cambiare simili a...
count(select * from bookings where b.id_customer = c.id)
...a...
(select count(*) from bookings where b.id_customer = c.id)
Prova a cambiare simili a...
count(select * from bookings where b.id_customer = c.id)
...a...
(select count(*) from bookings where b.id_customer = c.id)