An error has occurred in the TNG software. What to do:

If you just installed an upgrade, you might have skipped part of the installation instructions. Go back to the upgrade readme page reread the instructions. Pay special attention to the database structure step.

If you just installed TNG for the first time, you might still need to create the database tables. Return to the readme.html page to find that step.

If you are the site owner, you may contact TNG support for further assistance with this problem. Please copy the query below and paste it into your message.



Query: SELECT tng_people.living, tng_people.private, lnprefix, prefix, suffix, title, tng_people.branch, birthdate, birthdatetr, altbirthdate, altbirthdatetr, deathdate, deathdatetr,firstname, lastname,birthdate,altbirthdate,if(sex='M',families1.marrdate,families2.marrdate),deathdate, tng_people.personID, tng_people.gedcom, nameorder, LPAD(SUBSTRING_INDEX(, ' ', -1),4,'0') as yearonly FROM (tng_people ) LEFT JOIN tng_families AS families1 ON (tng_people.gedcom = families1.gedcom AND tng_people.personID = families1.husband ) LEFT JOIN tng_families AS families2 ON (tng_people.gedcom = families2.gedcom AND tng_people.personID = families2.wife ) WHERE (birthdate < 1923) AND tng_people.gedcom = "squire" ORDER BY yearonly LIMIT 200

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' ' ', -1),4,'0') as yearonly FROM (tng_people ) LEFT JOIN tng_families AS fam...' at line 1