ОШИБКА:  ошибка синтаксиса (примерное положение: "389220")
LINE 1: ...d FROM opg_cr_credit WHERE credit_id = АСВ_205_ЭК 389220 ) O...
                                                             ^

SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_phones_book WHERE normalized_phone LIKE '%9183126733%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_205_ЭК 389220 ) ORDER BY debtor_id DESC LIMIT 30


ОШИБКА:  ошибка синтаксиса (примерное положение: "389220")
LINE 1: ...id FROM opg_cr_credit WHERE credit_id = АСВ_205_ЭК 389220 );
                                                              ^

SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_phones_book WHERE normalized_phone LIKE '%9183126733%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_205_ЭК 389220 );


ОШИБКА:  ошибка синтаксиса в конце
LINE 1: SELECT * FROM xcalls.opgx_calls  WHERE id =
                                                    ^


SELECT * FROM xcalls.opgx_calls  WHERE id =


ОШИБКА:  ссылки между базами не реализованы: "xcalls.xcalls.opgx_str_ac_activity"
LINE 1: SELECT * FROM xcalls.xcalls.opgx_str_ac_activity WHERE id IN...
                      ^

SELECT * FROM xcalls.xcalls.opgx_str_ac_activity WHERE id IN (6564,5971);


ОШИБКА:  ссылки между базами не реализованы: "xcalls.xcalls.opgx_str_ac_activity"
LINE 1: SELECT * FROM xcalls.xcalls.opgx_str_ac_activity LIMIT 1;
                      ^


SELECT * FROM xcalls.xcalls.opgx_str_ac_activity LIMIT 1;