[#2098] capitalization of table names
[#858] need ending quote
[#1413] newly required variable needs defining