When I try to execute following query:
SELECT id_subscriber INTO newsletter_to_send FROM subscribers
I get an error:
MySQL does not support the SELECT ... INTO ... syntax.
SELECT ... INTO ...
You have to use the INSERT INTO ... SELECT .. syntax to accomplish there.
INSERT INTO ... SELECT ..
Read more here.. http://dev.mysql.com/doc/refman/5.0/en/insert-select.html