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 (45346,44766,17771,18185,5388,44867,17835,37267,44853,24441,45515,5259,44875,16885,17703,45180,44745,18652,28530,17492,44851,44685,18286,6609,44768,45262,19057,43800,45042,18237,4686,36472,18446,17351,17114,44674,13425,44868,34194,44765,44669,17981,44873,44687,45277,44863,44856,14622,44848,44861,17756,44869,18353,45051,9341,14402,18279,44870,18894,18430,17237,16935,24411,45043,44849,18648,22509,18650,44858,18172)
Unknown column 'np.person' in 'where clause'