I get an error: Can't DROP 'something'; check that column/key exists Code (markup): So is there a way to skip (continue) the DROP if the column to be deleted doesn't exist? ALTER TABLE config DROP COLUMN `something`, DROP COLUMN `something2`, DROP COLUMN `something3`, DROP COLUMN `something4`, .. .. .. so on... PHP: