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 (4686,18301,17839,44837,43800,17755,44869,18446,44865,44687,44768,31354,18794,44766,44671,44870,24412,24441,44853,18894,17527,10402,17237,24438,45262,18650,18996,17009,13988,44854,17556,44878,18652,45051,18427,19078,17771,44849,18286,17835,30135,18719,18430,17114,45517,44685,16885,44894,18572,17904,44745,18279,28530,34194,5993,17657,18042,45421,8753,44765,44875,44867,45516,44856,44689,3,17756,45518,44863,17492)
Unknown column 'np.person' in 'where clause'