Corrected query log for prod