Looks like you got it mixed up. You're probably looking for something like:
$sql = "UPDATE form_subcat " .
"SET `name`='" . $_POST['name'],
"', `desc`='" . $_POST['desc'] .
"', `cat_id`='" . $_POST['cat_id'] .
" WHERE `id`=" . $_POST['id'];
Of course, you should escape the incoming variables appropriately or risk SQL injection.