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 (44884,45229,18286,28313,18301,44739,17092,18900,44853,18688,44849,44765,5410,45421,30135,44835,44870,18650,18279,44875,45561,14622,44762,18652,37267,24438,44861,45072,44869,17756,6862,44711,13988,4686,18446,14402,45517,45277,44873,17848,17492,18981,44775,44868,45043,39676,6875,17351,5993,18894,44837,44685,44851,43800,31354,44854,17114,17904,45051,8753,13,24412,34194,17278,18427,18042,18172,17335,5388,18185)
Unknown column 'np.person' in 'where clause'