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

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