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 (17009,44845,17492,18719,45517,44671,44711,44767,13425,45072,44878,18652,17835,5259,44884,44848,45262,18301,45043,44870,45567,18427,22509,17114,44858,32454,44835,18572,31354,17755,44745,3883,44867,45346,44765,44687,17335,18430,44689,45051,44739,18279,44669,8753,17904,4686,18237,44674,44849,45177,18894,34194,18981,14622,28530,17237,44866,44865,18648,45286,44764,45229,45561,45516,44685,5993,45518,17848,4765,44873)
Unknown column 'np.person' in 'where clause'