MESSAGE ERROR: ERROR: invalid input syntax for integer: "" LINE 1: SELECT * FROM building WHERE id = '' ^
YOUR QUERY: SELECT * FROM building WHERE id = ''