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 p.ID, p.personID, lastname, lnprefix, firstname, p.living, p.private, p.branch, nickname, prefix, suffix, nameorder, title, birthplace, birthdate, deathplace, deathdate, altbirthdate, altbirthplace, burialdate, burialplace, p.gedcom, treename
FROM tng_people AS p
LEFT JOIN tng_trees on p.gedcom = tng_trees.gedcom WHERE AND p.endldate IN ('m','f') AND (p.living != 1 OR (p.gedcom = "" AND p.personID = ""))
ORDER BY p.lastname, p.firstname, IF(p.birthdatetr, p.birthdatetr, p.altbirthdatetr) LIMIT 50
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 'AND p.endldate IN ('m','f') AND (p.living != 1 OR (p.gedcom = "" AND p.personID ' at line 3