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,5993,44894,44835,5259,17755,19057,17756,13425,44671,18572,18446,44869,18981,17335,44853,44854,45072,17351,44851,44861,45517,44669,31354,17492,44849,18279,44531,18237,16885,5388,24412,45421,9341,44855,6782,44687,17981,34194,30135,45262,44845,44766,44867,44674,19078,44858,44711,44848,45051,44884,45042,36472,30986,37267,39676,4686,17114,18353,45346,44878,17237,45229,44836,10402,17601,6609,24411,44866,14402)
Unknown column 'np.person' in 'where clause'