Fixed recipe version last_used_at query