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 (4686,44894,31354,17278,13988,44854,6862,44870,17237,44875,17601,19078,45043,45177,3883,44837,45518,44884,14622,6609,37267,44863,17848,8753,17756,18894,45286,44671,18427,44869,17657,44845,17981,17351,44836,45516,17703,44745,18237,17009,13922,44669,18301,18353,17335,45421,18430,45515,45517,45072,18900,16935,44765,22509,45346,18652,17492,44873,45180,30963,44764,19057,5993,6782,44767,44853,13,44766,18185,44739)
Unknown column 'np.person' in 'where clause'