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 (19057,45515,44869,17756,5410,44861,44855,17703,44851,44870,17835,13,16885,24411,30963,45561,6875,18301,28530,5993,45177,18572,45051,45043,17092,44836,32454,44767,13988,18652,45421,17335,17904,6862,17351,44848,17556,17848,16935,18981,13425,17114,17237,17657,17601,45346,17981,31354,24438,44867,17755,44762,39676,17527,18353,3883,45567,5388,45180,44858,36472,45277,45516,44674,44835,44689,44640,44856,17009,44531)
Unknown column 'np.person' in 'where clause'