There is such a query to the database:
select * from `queue` left join `clients` on `clients`.`id` = `queue`.`client_id` where `queue`.`user_id` = '11' and `queue`.`user_id` is not null and `finished` = '0' But after left join, the id key from the table to which I join is replaced with the key of the table that I join. Have a solution without renaming keys?
where queue.user_id = '11' and queue.user_id is not nullThe second condition is meaningless, it can be removed from the query.ключ id из таблицы к которой присоединяю заменяется на ключ таблицы которую присоединяюI wonder how you distinguish them if they are equal? Or do you want to say that queue.client_id is a Null value for queue entries that are not matched by clients? - Akina