ERROR: invalid input syntax for integer: "" LINE 1: SELECT * FROM module WHERE modul = 'judet' AND id_ref = '' ^