add query to error log for testing