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 (44894,44765,44856,18353,17009,9341,13988,44884,18042,30963,18446,44851,45516,24441,44766,18794,30135,14402,17351,45567,44640,10402,44854,4686,13425,24411,44531,45561,4765,45286,37267,6875,16885,18301,6609,18427,44866,22509,44762,18688,44855,8753,17092,44768,3883,18185,18237,17492,36472,17114,19078,44837,34194,45262,44764,44687,17771,5388,17981,45518,18652,44868,44849,45043,44867,45517,44674,5259,45277,44853)
Unknown column 'np.person' in 'where clause'