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 (44685,18301,18572,18286,45277,45072,5259,30986,16935,44873,6609,45262,8753,17237,44875,28530,17835,17771,17556,44894,18430,17756,44711,24411,6862,18794,18652,17009,4686,17839,37057,44768,45516,17492,44884,17114,13425,6875,45229,17278,44835,17848,13988,34194,28313,44868,44775,18353,45421,45180,6782,18172,45567,44853,10402,3883,18237,43800,18648,44865,44837,44766,44861,45515,32454,17904,17703,18996,5388,17755)
Unknown column 'np.person' in 'where clause'