Migration from a remote database PDOException
The problem with the code is the connection to the database. There aren't fields in the select.

SELECT FROM {Content} ct


To solve that one of the solutions is adding ->fields('ct'); to the database connection. This will select all the fields from the table ct:

SELECT ct.* FROM {Content} ct