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 (44685,18172,17351,45229,4686,3,44863,17904,17527,17492,17756,17237,30986,44764,45517,18446,44853,45286,6609,17092,18237,44766,44875,44861,5388,18894,44878,44711,44837,17839,44884,18353,45262,3883,18279,44835,18301,17657,39676,44767,17009,17703,13425,36472,17981,44640,44762,19078,5259,30135,44869,34194,18652,45177,24438,44775,5993,17114,24412,44671,44858,16885,17335,17771,44849,44867,44687,45042,18042,44854)
Unknown column 'np.person' in 'where clause'