SQLSTATE[42883]: Undefined function: 7 ERROR:  operator does not exist: character varying = bigint
LINE 2: ...d=a.client_id LEFT JOIN batch_emails c ON c.doc_id=a.id AND ...
                                                             ^
HINT:  No operator matches the given name and argument types. You might need to add explicit type casts. (Connection: pgsql, SQL: SELECT a.id,a.doc_number,a.date,a.payment_proof_url,a.amount,a.total,a.counting_notify,a.client_id,b.name AS client_name
                                        FROM t_client_deposit a JOIN m_clients b ON b.id=a.client_id LEFT JOIN batch_emails c ON c.doc_id=a.id AND c.doc_type='t_client_deposit'
                                        WHERE a.status = 'OPEN' AND (a.date_notify is null OR c.id is null OR a.date_notify <= NOW() - INTERVAL '24 hours') AND a.f_notify = 0
                                        ORDER BY a.id ASC
                                    )