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 (45286,18981,4686,45262,17835,17492,44858,44851,18688,44836,44884,18427,44669,44689,44855,17771,45051,16935,18237,5259,13988,37057,19078,44848,28313,44845,18430,24411,44875,45346,44873,17335,28530,17009,34194,17527,8753,17703,44870,44856,18301,45042,17981,3,14622,3883,13425,17237,45515,45180,18652,30986,44640,44867,19057,17278,18279,44894,6875,31354,45072,18894,44866,36472,24441,44687,30963,18446,44767,18572)
Unknown column 'np.person' in 'where clause'