If you are tring to load a CMS version of LGSL in a non CMS page, you will need to edit the lgsl_config.php and put in your database settings.
If you are using the stand-alone, and its your site making the SQL errors, you need to create the LGSL table in the site database, and change the lgsl_config.php to match.