Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44858,18894,24411,44845,44861,14402,44669,18279,44870,45515,16885,45262,17492,45518,3,18172,17839,44884,45043,14622,44674,45177,18996,17657,44856,45421,18237,18794,44867,17601,18286,18427,6875,17981,5259,17756,45516,45072,5993,44868,44687,17556,18652,44873,17092,44711,44835,44767,44875,44855,45229,43800,16935,36472,17278,13988,13,18042,17527,6782,24412,17848,13425,44739,44531,45277,31354,45561,44765,44849)
Unknown column 'np.person' in 'where clause'