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 (24441,6782,10402,45043,18648,4686,44685,45051,17527,13,18427,45277,16935,45421,44870,5993,14622,6875,45177,45042,18794,44836,3,24412,45516,18279,30135,17237,44531,31354,17904,37057,18353,44858,17492,17981,44845,17703,44863,5410,44865,44640,4765,24438,44868,44875,18900,18894,18172,44854,28313,45072,44867,44869,30986,17756,44851,32454,17839,17009,44711,18652,17114,44766,19057,18185,44689,44764,37267,17278)
Unknown column 'np.person' in 'where clause'