Invalid query: SELECT a.*, a.description AS biography, DATE_FORMAT(a.birthday, '%b %e, %Y') AS author_birthday, DATE_FORMAT(a.deathday, '%b %e, %Y') AS author_deathday, na.nationality AS nation, na.alias AS nation_alias,na.id AS natid, g.* FROM quote_authors a LEFT JOIN quote_group_link l ON (a.authorid = l.authorid) LEFT JOIN quote_author_groups g ON (g.groupid = l.groupid) LEFT JOIN quote_nationalities na ON (a.nationality = na.id) WHERE a.alias = 'pj-o'rourke'