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 (5993,5388,44531,34194,6609,18894,5410,17237,6782,13425,18427,28530,44870,44853,45346,44873,17981,17756,45042,17904,18301,44848,30963,44867,45515,44671,45262,17601,18996,44875,44861,17771,14402,32454,44765,45421,17009,44884,45567,19057,4765,44837,17848,44711,44768,44669,45051,18042,44894,18286,18430,45561,18652,44865,44868,45516,30135,18185,45177,44766,30986,13988,44869,18981,16885,18648,44775,45517,19078,24412)
Unknown column 'np.person' in 'where clause'