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 (45277,45515,31354,4765,44685,16935,22509,44863,18042,6782,18894,18650,44870,44767,44835,5410,14622,17755,45042,17756,44711,5993,24441,44671,18427,17657,18719,13,17009,18172,44868,17703,34194,17335,19078,45517,44669,44837,17601,17527,18648,18430,44853,44884,18301,45229,45072,44854,24438,44851,17237,13922,4686,45346,39676,44858,17556,44836,17351,5259,45262,37057,18237,45043,44873,44687,44867,44674,17848,28530)
Unknown column 'np.person' in 'where clause'