shouldn't it be:
'; DROP TABLE "COMPANIES";--
?ie. end the single quote first, so that searching by the text would be:
SELECT * FROM "COMPANIES" WHERE "NAME" = ''; DROP TABLE "COMPANIES";--'