No database selected
select varvalue from ***_enewstempvar where myvar='***_appfooter' limit 1