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 (6875,45286,45180,17237,45346,24411,37267,18648,44711,44767,44766,44640,17527,17755,24438,44894,44775,18996,3,5993,17092,44848,4686,31354,18237,45421,44854,16935,17492,18427,22509,24441,17848,4765,37057,18286,45515,44868,8753,44671,3883,45277,44762,17771,44870,13988,44837,17601,17839,36472,19078,18572,45051,34194,17904,28530,44878,24412,44853,45177,45516,44867,45262,28313,32454,17114,45561,18794,30963,14622)
Unknown column 'np.person' in 'where clause'