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 (43800,17703,44669,45262,44853,44764,18900,44873,44837,17657,17351,44867,44775,18981,8753,44855,44767,17755,44711,5259,17756,36472,17771,44865,6862,44849,18237,44848,17981,24438,44856,31354,17114,45567,17839,44836,18688,44685,17237,30986,17835,18430,10402,34194,44878,13425,4686,44745,32454,18652,45421,44640,28530,44765,45346,18648,6782,44689,37057,44870,44854,18279,18794,44863,44768,44858,16885,44875,17848,19057)
Unknown column 'np.person' in 'where clause'