: SELECT display, .note as note, .eventID as eventID, .xnoteID as xnoteID, .ID as ID, noteID FROM LEFT JOIN on .xnoteID = .ID AND .gedcom = .gedcom LEFT JOIN ON .eventID = .eventID LEFT JOIN on .eventtypeID = .eventtypeID WHERE .persfamID="I3550" AND .gedcom="Main" ORDER BY eventdatetr, .ordernum, tag, .ordernum, ID

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 'as note, .eventID as eventID, .xnoteID as xnoteID, .ID as ID, noteID FROM LE' at line 1