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 (13,43800,44853,45518,17703,14402,16885,44674,6782,18286,18688,44854,18652,17092,31354,19057,18894,17009,17904,16935,17755,18353,44685,44765,17756,4686,3883,45277,44775,17335,44671,18981,45229,44835,44849,44856,45517,44858,44767,45421,18794,18648,17351,19078,44875,17556,44861,44866,17527,18572,24412,44855,5388,30135,6875,3,44764,45346,14622,44894,45516,18185,32454,44837,13988,44845,44869,44870,5993,17114)
Unknown column 'np.person' in 'where clause'