Error: SQL failed; SQL: SELECT SQL_CALC_FOUND_ROWS DISTINCT t.* FROM pod p LEFT JOIN pod_rel r1 ON r1.field_id = 50 AND r1.pod_id = p.id LEFT JOIN `pod_tbl_project` `project` ON `project`.id = r1.tbl_row_id INNER JOIN `pod_tbl_publication` t ON t.id = p.tbl_row_id WHERE p.datatype = 4 AND file = '/wp-content/uploads/2011/12/bees-study-report-236-year-3.pdf' ORDER BY date DESC LIMIT 0, 1 ; Response: Unknown column 'file' in 'where clause'