Query failed: ERROR: invalid input syntax for integer: "" LINE 1: SELECT name, code FROM plan_types pt WHERE pt.id = '' ^