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

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