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 (44845,18430,44884,18794,6782,44865,17771,44531,44711,44669,45229,44854,45262,18981,44869,17009,17848,17981,44689,17237,44766,8753,16885,18279,44867,3,17092,17703,44851,36472,17657,44762,22509,45277,18185,44640,18286,17527,5388,17278,37267,45072,18427,24438,18446,45516,17492,18172,10402,44870,17756,32454,30135,13425,6862,44849,45567,18894,45518,18301,44894,44687,18353,6875,18719,44848,3883,17351,16935,45561)
Unknown column 'np.person' in 'where clause'