SELECT * FROM posts WHERE id = downloads_1522068320_df5ab87ae08a6cd.pdf AND category_id = 2 AND type = 'media'

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'downloads_1522068320_df5ab87ae08a6cd.pdf' in 'where clause'