Here is query
BEGIN;
SELECT NumberRenamed, ... FROM 2_1_paidused WHERE CreditAccount = ? AND ...;
SELECT NumberRenamed, ... FROM 2_1_paidused WHERE DebitAccount = ? AND ...;
COMMIT;`
(... is long list with columns and conditions).
and get SQLSTATE[HY000]: General error.
Removed BEGIN; and COMMIT; and all works as expected without errors.
From my knowledge if more than one SELECT, then need to use BEGIN; and COMMIT; But appears that I am wrong. So, does it mean that it is allowed to use more than one SELECT without BEGIN; and COMMIT;? Or my query is incorrect?