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 (24441,44836,18427,17756,18286,17703,18353,16885,28313,45043,22509,13922,17237,44868,17981,44858,13425,44835,45567,17114,39676,44894,30986,44853,45229,44870,44768,18996,18042,17351,17335,31354,19057,43800,18652,14622,24438,44855,44884,44766,45177,18185,44873,44875,17278,44869,44671,45051,18572,45072,17092,44739,18794,5388,18279,17835,44878,10402,18301,17492,4765,17527,45286,17771,44765,18172,45421,44851,44767,18688)
Unknown column 'np.person' in 'where clause'