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 (18894,17527,17756,45518,44669,45286,18042,44775,19078,44858,18301,13922,17114,14402,19057,44870,44865,45051,44835,18427,18172,30986,37267,44869,17092,44861,18185,17703,45515,45517,44853,17335,45042,44837,44894,39676,17009,28313,5259,24441,24412,44875,18996,17278,18688,14622,18353,17835,44848,44762,30135,18650,17237,44674,44766,45346,18446,13425,13,45516,18652,45177,18719,44855,8753,6862,44873,13988,45229,16885)
Unknown column 'np.person' in 'where clause'