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 (44689,6782,6862,45051,17657,45286,17601,28530,44775,44674,44765,17351,45517,14402,13922,44767,44745,17755,45516,18688,44762,13425,44873,45518,44669,18430,18794,44894,44856,45177,17278,13988,45561,5259,28313,17009,17237,44875,44836,3883,18286,44711,44531,8753,44851,17703,34194,36472,17848,44766,4765,18719,45042,5388,45567,31354,16935,17335,45277,37267,18652,45229,45421,3,44884,44837,18648,5410,5993,19078)
Unknown column 'np.person' in 'where clause'