Define child table first. Also fix syntax.