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 (17114,44689,45229,17848,18286,17278,18688,44768,18572,17237,44878,31354,44685,6875,44766,39676,28530,17335,22509,17756,6782,18719,13,45286,44848,44894,8753,18652,24441,45072,5259,17092,44865,45561,13988,45051,43800,45567,30986,37267,44869,45421,17351,16935,32454,17009,18427,14402,17601,45043,18301,37057,24412,44855,13922,44875,44853,19078,44849,10402,18446,45180,44867,24411,44866,45517,18353,44873,18794,13425)
Unknown column 'np.person' in 'where clause'