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 (17848,45051,44766,17527,18353,18719,31354,45229,44689,17703,18688,39676,17835,44884,5993,44858,5388,45517,17237,17756,44848,13425,45180,17556,17755,19078,44775,44837,44745,22509,13,14402,32454,44875,18286,44894,44868,44867,17278,13922,44767,4765,28313,30135,44669,18446,13988,28530,17092,45421,37267,44866,18572,44764,17009,44863,19057,17335,6782,18430,8753,36472,18981,44855,17657,45072,44865,45516,45286,17981)
Unknown column 'np.person' in 'where clause'