An Error Was Encountered

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Doul' OR (nameLast) = 'O'Doul'' at line 13

SELECT *, DATE_FORMAT(debut,'%W %D %M %Y') AS debut, DATE_FORMAT(finalGame, '%D %M %Y') AS finalGame, DATE_FORMAT(CONCAT('2000-',birthMonth,'-01'),'%M') AS birthMonth, DATE_FORMAT(CONCAT('2000-01-',birthDay),'%D') AS birthDay, DATE_FORMAT(CONCAT(deathYear,'-',deathMonth,'-',deathDay),'%D %M %Y') AS death_date, CASE WHEN birthCountry = 'USA' THEN CONCAT('the ',birthCountry) ELSE birthCountry END AS birthCountry FROM master WHERE 1 AND playerID != '' AND (nameFirst) = 'O'Doul' OR (nameLast) = 'O'Doul'