Handle limit=1 in log queries.