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

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