Missing closing tag - </table>

Updated query