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 (17981,19057,45346,17278,18042,18286,19078,18301,45567,44894,18894,16935,44762,24411,18430,8753,44674,28313,44861,5388,44866,44764,45229,44766,44687,24441,45518,4686,17009,18427,45043,18900,44775,3883,17335,44853,6609,44531,44835,44884,4765,18688,18981,18652,45561,17492,44858,17755,18446,44689,32454,18572,45515,45421,44873,36472,45516,17657,17703,44878,17527,6875,16885,13425,44870,44849,18185,37267,45277,17556)
Unknown column 'np.person' in 'where clause'