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 (45346,14402,24441,43800,44835,44687,18652,45262,17756,44768,22509,44858,44861,18185,45518,17771,44674,44853,3883,44894,17835,17904,44855,44711,17657,17237,5259,18446,44671,45286,18237,13,45072,44739,44848,18172,17335,34194,36472,45277,45567,37057,10402,24412,9341,5410,45516,44851,28313,17114,24438,45515,17755,18427,31354,18286,44767,18572,44870,4686,44837,45229,17556,45051,18042,18894,44867,44669,18301,18981)
Unknown column 'np.person' in 'where clause'