Syntax error, unexpected token IDENTIFIER(UNION), near to ' ALL SELECT id,first_name,last_name,bounce_email_address from MailchimpImportContacts where flag=1', when parsing: SELECT id,first_name,last_name,contact_email from Contacts where flag=1 UNION ALL SELECT id,first_name,last_name,bounce_email_address from MailchimpImportContacts where flag=1 (175)