SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous (SQL: select count(*) as aggregate from `orders` left join `logs` as `lg` on `orders`.`id` = `lg`.`entity_id` where (exists (select * from `orders_removal` where `orders`.`id` = `orders_removal`.`order_id` and exists (select * from `products` where `orders_removal`.`product_id` = `products`.`id` and `type` = removal) and `orders_removal`.`deleted_at` is null) and `payment_status` = M1 or ((`id` LIKE %1906% or `title` LIKE %1906% or `name` LIKE %1906% or `last_name` LIKE %1906% or `gender` LIKE %1906% or `company` LIKE %1906% or `country` LIKE %1906% or `city` LIKE %1906% or `street` LIKE %1906% or `zip` LIKE %1906% or `phone` LIKE %1906% or `email` LIKE %1906% or `vat_number` LIKE %1906% or `profile_link` LIKE %1906% or `buyer_note` LIKE %1906% or `invoice_note` LIKE %1906% or `admin_note` LIKE %1906% or `shop_id` LIKE %1906% or `insurance` LIKE %1906% or `receive_percents` LIKE %1906% or `force_invoice` LIKE %1906% or `source` LIKE %1906% or `payment_system` LIKE %1906% or `payment_status` LIKE %1906% or `outer_payment_id` LIKE %1906% or `outer_mandate_id` LIKE %1906% or `outer_user_id` LIKE %1906% or `outer_order_id` LIKE %1906% or `external_id` LIKE %1906% or `no_manager` LIKE %1906% or `lawyer` LIKE %1906% or `archived` LIKE %1906% or `customer_id` LIKE %1906% or `remind_at` LIKE %1906% or `charge_at` LIKE %1906% or `created_at` LIKE %1906% or `updated_at` LIKE %1906% or `deleted_at` LIKE %1906% or `vat_exempt` LIKE %1906%) or exists (select * from `orders_removal` where `orders`.`id` = `orders_removal`.`order_id` and `reference_number` LIKE %1906% and `orders_removal`.`deleted_at` is null))) and `archived` = 0 and `orders`.`deleted_at` is null group by `orders`.`id`)