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 (17556,44711,45567,6862,45180,17351,17492,44853,17756,24438,44856,45229,45051,24411,44837,18650,32454,18981,17703,45042,44687,45515,24441,17848,5410,28530,17839,44762,44848,45277,14402,6782,17237,44835,4686,37057,44861,13922,44870,18572,4765,44531,18279,18688,44866,3,31354,45346,18894,44873,18430,44674,18794,24412,45518,34194,22509,44766,18652,45517,44739,44685,44868,10402,45043,44867,17114,5259,30135,45421)
Unknown column 'np.person' in 'where clause'