I am trying to run he following query from Adminer 4.6.2 and it gives me the vague "syntax error" with no further details:
db_query("DELETE FROM {field_collection_item} WHERE field_name NOT IN (SELECT field_name FROM {field_config} WHERE type = 'field_collection')");
I have also tried this:
DELETE FROM {field_collection_item} WHERE field_name NOT IN (SELECT field_name FROM {field_config} WHERE type = 'field_collection')
but it returns the same syntax error.