How can I use a MySQL query in an openquery query on Microsoft SQL Server.? I have the following query which works fine in MySQL:

DELETE sb 
FROM stockbatches sb 
    INNER JOIN batchestodelete btd 
ON sb.batch_batch = btd.batchno 
    AND sb.batch_part = btd.batchpart 


What I want to do is run this query on the MySQL table from SQL Server using an openquery to a linked MySQL server.  I cannot get the syntax right. 

Can anybody help please?
According to the OPENQUERY syntax you'd have to rewrite the script in the following way:

DELETE OPENQUERY (MySQLServer, '
    SELECT sb.*
    FROM stockbatches sb 
    INNER JOIN batchestodelete btd 
    ON sb.batch_batch = btd.batchno 
    AND sb.batch_part = btd.batchpart;
');