I was previously making smem_process_query set the king_id incorrectly.