Подскажите почему когда добавляю count то получаю такую ошибку
message: "SQLSTATE[42S22]: Column not found: 1054 Unknown column '
clients.id' in 'where clause' (SQL: select count(*) as aggregate from
clients_to_places
where
client_id
=
clients
.
id
and
shop_id
= 4)"