This query is made before the settings table is even set up. It is DatabasePopulation() which performs the creation of the relevant table.

Better still, why not just integrate it directly into the install file and populate it when the table is created, like $smf_version or $current_time are?