When trying to edit timetables in PostgreSQL, the following SQLException is thrown No value specified for parameter 2. SELECT gu_calendar,nm_calendar,dt_from,dt_to,gu_user,gu_acl_group,id_country,id_state FROM k_working_calendar WHERE id_domain=? AND gu_workarea=? ORDER BY 2 with parameters 2052