Error: SQLSTATE[25P02]

Error: SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block

SQL Query: SELECT DISTINCT table_schema AS schema, column_name AS name, data_type AS type, is_nullable AS null, column_default AS default, ordinal_position AS position, character_maximum_length AS char_length, character_octet_length AS oct_length FROM information_schema.columns WHERE table_name = ? AND table_schema = ? ORDER BY position

Can you supply more detail ?
This problem may cause by transaction block , it also relates to Database.

null is a keyword in sql, this could be what’s causing the problem since your stating you want is_nullable to be referred to as null. But as @vqdat169 said more info is needed.