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 (18427,16935,44863,45518,5993,17237,14402,44875,28530,44845,45229,17114,44671,17835,18894,45042,17092,18996,44711,44739,44855,18981,18286,18430,18652,6875,18900,14622,44869,17351,6782,19078,44870,18446,45051,30135,18794,17755,17904,17981,44856,44837,37057,44867,45516,44865,17527,44745,44861,45346,44873,17756,13425,30963,16885,17492,17278,37267,45286,17601,5388,45262,44884,44765,39676,17848,44674,44848,18648,36472)
Unknown column 'np.person' in 'where clause'