Manca il ; (puntoevirgola) nella query, rivendi anche la sintassi html la vedo molto confusa