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 (18894,13425,44866,34194,18427,31354,28530,24412,18301,18981,18430,44861,45516,44873,45517,18719,45518,45346,44884,17601,45567,6875,18446,30963,44837,6862,17703,16935,16885,17237,18279,44855,44856,44845,44875,18172,14622,44858,17278,45043,17492,44894,17848,45421,44869,45051,18652,10402,30986,24411,8753,17556,18237,44687,17527,13,17351,17755,44766,36472,30135,17009,3883,44669,17771,44853,5993,18688,18185,44674)
Unknown column 'np.person' in 'where clause'