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 (37057,18652,24411,44739,44873,44768,17771,37267,44764,44863,44867,13,45515,5259,18301,45567,4686,44767,44865,44640,9341,10402,44674,18900,18427,5388,18894,44894,44845,13988,44856,17703,30135,34194,17527,6782,44854,45518,44849,44855,43800,17657,44669,44766,16935,44868,44869,24412,44866,44835,45051,44853,44689,6875,17556,45180,45262,30986,6609,17278,44848,44711,17756,44870,18688,17237,18279,5993,44531,18185)
Unknown column 'np.person' in 'where clause'