Query failed: ERROR: syntax error at end of input LINE 1: ...ew_data4pictogram_ WHERE reference_date = '' and asap1_id = ^