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 (37267,18719,17904,16885,18900,44531,22509,44835,44767,14622,18279,44853,44775,45346,17009,18794,17335,24441,44869,28530,18648,44765,18446,44745,18894,44870,17703,44854,17981,45042,45229,39676,44858,17092,44861,44764,17237,44768,17848,5993,37057,18650,5259,3,18427,19078,17278,44762,5410,44865,44836,28313,18286,45051,4765,44849,3883,17839,34194,45072,44894,18652,17657,17527,45421,44875,17755,44867,4686,18430)
Unknown column 'np.person' in 'where clause'