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 (44866,44868,44854,16885,18427,18446,17839,18794,36472,44837,19078,18900,18172,44767,18894,24411,45277,5993,13922,32454,45516,17981,13988,28313,17009,4686,45286,44894,44849,44762,28530,44739,44870,44867,44855,44640,10402,18042,5259,13425,22509,18237,19057,45180,18279,3883,30135,17237,5388,17351,30986,17092,45561,31354,6875,44687,45043,45421,17771,44869,44856,17835,44873,44875,18301,17335,17904,45072,44768,18353)
Unknown column 'np.person' in 'where clause'