diff --git a/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs b/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs index 9e8952325..2f7c17866 100644 --- a/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs +++ b/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs @@ -917,7 +917,7 @@ async fn fact_get_idempotent_record_raw( let table_name = package_table_name(&format!("stats_inst_fact_{fact_conf_key}"), ctx); let result = conn .query_one( - &format!("SELECT * FROM {table_name} WHERE and idempotent_id = $2 ORDER BY ct DESC"), + &format!("SELECT * FROM {table_name} WHERE idempotent_id = $2 ORDER BY ct DESC"), vec![Value::from(idempotent_id)], ) .await?;